This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
370 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
232 changes: 232 additions & 0 deletions
232
...xchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/Category.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
/* | ||
* Copyright 2020 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. | ||
*/ | ||
// Generated by the protocol buffer compiler. DO NOT EDIT! | ||
// source: google/cloud/bigquery/dataexchange/common/common.proto | ||
|
||
package com.google.cloud.bigquery.dataexchange.common; | ||
|
||
/** | ||
* | ||
* | ||
* <pre> | ||
* Listing categories. | ||
* </pre> | ||
* | ||
* Protobuf enum {@code google.cloud.bigquery.dataexchange.common.Category} | ||
*/ | ||
public enum Category implements com.google.protobuf.ProtocolMessageEnum { | ||
/** <code>CATEGORY_UNSPECIFIED = 0;</code> */ | ||
CATEGORY_UNSPECIFIED(0), | ||
/** <code>CATEGORY_OTHERS = 1;</code> */ | ||
CATEGORY_OTHERS(1), | ||
/** <code>CATEGORY_ADVERTISING_AND_MARKETING = 2;</code> */ | ||
CATEGORY_ADVERTISING_AND_MARKETING(2), | ||
/** <code>CATEGORY_COMMERCE = 3;</code> */ | ||
CATEGORY_COMMERCE(3), | ||
/** <code>CATEGORY_CLIMATE_AND_ENVIRONMENT = 4;</code> */ | ||
CATEGORY_CLIMATE_AND_ENVIRONMENT(4), | ||
/** <code>CATEGORY_DEMOGRAPHICS = 5;</code> */ | ||
CATEGORY_DEMOGRAPHICS(5), | ||
/** <code>CATEGORY_ECONOMICS = 6;</code> */ | ||
CATEGORY_ECONOMICS(6), | ||
/** <code>CATEGORY_EDUCATION = 7;</code> */ | ||
CATEGORY_EDUCATION(7), | ||
/** <code>CATEGORY_ENERGY = 8;</code> */ | ||
CATEGORY_ENERGY(8), | ||
/** <code>CATEGORY_FINANCIAL = 9;</code> */ | ||
CATEGORY_FINANCIAL(9), | ||
/** <code>CATEGORY_GAMING = 10;</code> */ | ||
CATEGORY_GAMING(10), | ||
/** <code>CATEGORY_GEOSPATIAL = 11;</code> */ | ||
CATEGORY_GEOSPATIAL(11), | ||
/** <code>CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12;</code> */ | ||
CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE(12), | ||
/** <code>CATEGORY_MEDIA = 13;</code> */ | ||
CATEGORY_MEDIA(13), | ||
/** <code>CATEGORY_PUBLIC_SECTOR = 14;</code> */ | ||
CATEGORY_PUBLIC_SECTOR(14), | ||
/** <code>CATEGORY_RETAIL = 15;</code> */ | ||
CATEGORY_RETAIL(15), | ||
/** <code>CATEGORY_SPORTS = 16;</code> */ | ||
CATEGORY_SPORTS(16), | ||
/** <code>CATEGORY_SCIENCE_AND_RESEARCH = 17;</code> */ | ||
CATEGORY_SCIENCE_AND_RESEARCH(17), | ||
/** <code>CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18;</code> */ | ||
CATEGORY_TRANSPORTATION_AND_LOGISTICS(18), | ||
/** <code>CATEGORY_TRAVEL_AND_TOURISM = 19;</code> */ | ||
CATEGORY_TRAVEL_AND_TOURISM(19), | ||
UNRECOGNIZED(-1), | ||
; | ||
|
||
/** <code>CATEGORY_UNSPECIFIED = 0;</code> */ | ||
public static final int CATEGORY_UNSPECIFIED_VALUE = 0; | ||
/** <code>CATEGORY_OTHERS = 1;</code> */ | ||
public static final int CATEGORY_OTHERS_VALUE = 1; | ||
/** <code>CATEGORY_ADVERTISING_AND_MARKETING = 2;</code> */ | ||
public static final int CATEGORY_ADVERTISING_AND_MARKETING_VALUE = 2; | ||
/** <code>CATEGORY_COMMERCE = 3;</code> */ | ||
public static final int CATEGORY_COMMERCE_VALUE = 3; | ||
/** <code>CATEGORY_CLIMATE_AND_ENVIRONMENT = 4;</code> */ | ||
public static final int CATEGORY_CLIMATE_AND_ENVIRONMENT_VALUE = 4; | ||
/** <code>CATEGORY_DEMOGRAPHICS = 5;</code> */ | ||
public static final int CATEGORY_DEMOGRAPHICS_VALUE = 5; | ||
/** <code>CATEGORY_ECONOMICS = 6;</code> */ | ||
public static final int CATEGORY_ECONOMICS_VALUE = 6; | ||
/** <code>CATEGORY_EDUCATION = 7;</code> */ | ||
public static final int CATEGORY_EDUCATION_VALUE = 7; | ||
/** <code>CATEGORY_ENERGY = 8;</code> */ | ||
public static final int CATEGORY_ENERGY_VALUE = 8; | ||
/** <code>CATEGORY_FINANCIAL = 9;</code> */ | ||
public static final int CATEGORY_FINANCIAL_VALUE = 9; | ||
/** <code>CATEGORY_GAMING = 10;</code> */ | ||
public static final int CATEGORY_GAMING_VALUE = 10; | ||
/** <code>CATEGORY_GEOSPATIAL = 11;</code> */ | ||
public static final int CATEGORY_GEOSPATIAL_VALUE = 11; | ||
/** <code>CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12;</code> */ | ||
public static final int CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE_VALUE = 12; | ||
/** <code>CATEGORY_MEDIA = 13;</code> */ | ||
public static final int CATEGORY_MEDIA_VALUE = 13; | ||
/** <code>CATEGORY_PUBLIC_SECTOR = 14;</code> */ | ||
public static final int CATEGORY_PUBLIC_SECTOR_VALUE = 14; | ||
/** <code>CATEGORY_RETAIL = 15;</code> */ | ||
public static final int CATEGORY_RETAIL_VALUE = 15; | ||
/** <code>CATEGORY_SPORTS = 16;</code> */ | ||
public static final int CATEGORY_SPORTS_VALUE = 16; | ||
/** <code>CATEGORY_SCIENCE_AND_RESEARCH = 17;</code> */ | ||
public static final int CATEGORY_SCIENCE_AND_RESEARCH_VALUE = 17; | ||
/** <code>CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18;</code> */ | ||
public static final int CATEGORY_TRANSPORTATION_AND_LOGISTICS_VALUE = 18; | ||
/** <code>CATEGORY_TRAVEL_AND_TOURISM = 19;</code> */ | ||
public static final int CATEGORY_TRAVEL_AND_TOURISM_VALUE = 19; | ||
|
||
public final int getNumber() { | ||
if (this == UNRECOGNIZED) { | ||
throw new java.lang.IllegalArgumentException( | ||
"Can't get the number of an unknown enum value."); | ||
} | ||
return value; | ||
} | ||
|
||
/** | ||
* @param value The numeric wire value of the corresponding enum entry. | ||
* @return The enum associated with the given numeric wire value. | ||
* @deprecated Use {@link #forNumber(int)} instead. | ||
*/ | ||
@java.lang.Deprecated | ||
public static Category valueOf(int value) { | ||
return forNumber(value); | ||
} | ||
|
||
/** | ||
* @param value The numeric wire value of the corresponding enum entry. | ||
* @return The enum associated with the given numeric wire value. | ||
*/ | ||
public static Category forNumber(int value) { | ||
switch (value) { | ||
case 0: | ||
return CATEGORY_UNSPECIFIED; | ||
case 1: | ||
return CATEGORY_OTHERS; | ||
case 2: | ||
return CATEGORY_ADVERTISING_AND_MARKETING; | ||
case 3: | ||
return CATEGORY_COMMERCE; | ||
case 4: | ||
return CATEGORY_CLIMATE_AND_ENVIRONMENT; | ||
case 5: | ||
return CATEGORY_DEMOGRAPHICS; | ||
case 6: | ||
return CATEGORY_ECONOMICS; | ||
case 7: | ||
return CATEGORY_EDUCATION; | ||
case 8: | ||
return CATEGORY_ENERGY; | ||
case 9: | ||
return CATEGORY_FINANCIAL; | ||
case 10: | ||
return CATEGORY_GAMING; | ||
case 11: | ||
return CATEGORY_GEOSPATIAL; | ||
case 12: | ||
return CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE; | ||
case 13: | ||
return CATEGORY_MEDIA; | ||
case 14: | ||
return CATEGORY_PUBLIC_SECTOR; | ||
case 15: | ||
return CATEGORY_RETAIL; | ||
case 16: | ||
return CATEGORY_SPORTS; | ||
case 17: | ||
return CATEGORY_SCIENCE_AND_RESEARCH; | ||
case 18: | ||
return CATEGORY_TRANSPORTATION_AND_LOGISTICS; | ||
case 19: | ||
return CATEGORY_TRAVEL_AND_TOURISM; | ||
default: | ||
return null; | ||
} | ||
} | ||
|
||
public static com.google.protobuf.Internal.EnumLiteMap<Category> internalGetValueMap() { | ||
return internalValueMap; | ||
} | ||
|
||
private static final com.google.protobuf.Internal.EnumLiteMap<Category> internalValueMap = | ||
new com.google.protobuf.Internal.EnumLiteMap<Category>() { | ||
public Category findValueByNumber(int number) { | ||
return Category.forNumber(number); | ||
} | ||
}; | ||
|
||
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { | ||
if (this == UNRECOGNIZED) { | ||
throw new java.lang.IllegalStateException( | ||
"Can't get the descriptor of an unrecognized enum value."); | ||
} | ||
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.bigquery.dataexchange.common.CommonProto.getDescriptor() | ||
.getEnumTypes() | ||
.get(0); | ||
} | ||
|
||
private static final Category[] VALUES = values(); | ||
|
||
public static Category 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 Category(int value) { | ||
this.value = value; | ||
} | ||
|
||
// @@protoc_insertion_point(enum_scope:google.cloud.bigquery.dataexchange.common.Category) | ||
} |
69 changes: 69 additions & 0 deletions
69
...ange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/CommonProto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Copyright 2020 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. | ||
*/ | ||
// Generated by the protocol buffer compiler. DO NOT EDIT! | ||
// source: google/cloud/bigquery/dataexchange/common/common.proto | ||
|
||
package com.google.cloud.bigquery.dataexchange.common; | ||
|
||
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); | ||
} | ||
|
||
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { | ||
return descriptor; | ||
} | ||
|
||
private static com.google.protobuf.Descriptors.FileDescriptor descriptor; | ||
|
||
static { | ||
java.lang.String[] descriptorData = { | ||
"\n6google/cloud/bigquery/dataexchange/com" | ||
+ "mon/common.proto\022)google.cloud.bigquery." | ||
+ "dataexchange.common*\267\004\n\010Category\022\030\n\024CATE" | ||
+ "GORY_UNSPECIFIED\020\000\022\023\n\017CATEGORY_OTHERS\020\001\022" | ||
+ "&\n\"CATEGORY_ADVERTISING_AND_MARKETING\020\002\022" | ||
+ "\025\n\021CATEGORY_COMMERCE\020\003\022$\n CATEGORY_CLIMA" | ||
+ "TE_AND_ENVIRONMENT\020\004\022\031\n\025CATEGORY_DEMOGRA" | ||
+ "PHICS\020\005\022\026\n\022CATEGORY_ECONOMICS\020\006\022\026\n\022CATEG" | ||
+ "ORY_EDUCATION\020\007\022\023\n\017CATEGORY_ENERGY\020\010\022\026\n\022" | ||
+ "CATEGORY_FINANCIAL\020\t\022\023\n\017CATEGORY_GAMING\020" | ||
+ "\n\022\027\n\023CATEGORY_GEOSPATIAL\020\013\022(\n$CATEGORY_H" | ||
+ "EALTHCARE_AND_LIFE_SCIENCE\020\014\022\022\n\016CATEGORY" | ||
+ "_MEDIA\020\r\022\032\n\026CATEGORY_PUBLIC_SECTOR\020\016\022\023\n\017" | ||
+ "CATEGORY_RETAIL\020\017\022\023\n\017CATEGORY_SPORTS\020\020\022!" | ||
+ "\n\035CATEGORY_SCIENCE_AND_RESEARCH\020\021\022)\n%CAT" | ||
+ "EGORY_TRANSPORTATION_AND_LOGISTICS\020\022\022\037\n\033" | ||
+ "CATEGORY_TRAVEL_AND_TOURISM\020\023B\227\002\n-com.go" | ||
+ "ogle.cloud.bigquery.dataexchange.commonB" | ||
+ "\013CommonProtoP\001ZOgoogle.golang.org/genpro" | ||
+ "to/googleapis/cloud/bigquery/dataexchang" | ||
+ "e/common;common\252\002)Google.Cloud.BigQuery." | ||
+ "DataExchange.Common\312\002)Google\\Cloud\\BigQu" | ||
+ "ery\\DataExchange\\Common\352\002-Google::Cloud:" | ||
+ ":Bigquery::DataExchange::Commonb\006proto3" | ||
}; | ||
descriptor = | ||
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( | ||
descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); | ||
} | ||
|
||
// @@protoc_insertion_point(outer_class_scope) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.