index
int64
repo_id
string
file_path
string
content
string
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/aggregate
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/aggregate/v1/PlanAggregateBackfillResponseOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/aggregate/v1/service.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.aggregate.v1; public interface PlanAggregateBackfillResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.aggregate.v1.PlanAggregateBackfillResponse) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.aggregate.v1.AggregateBackfillCostEstimate estimate = 2 [json_name = "estimate"];</code> * @return Whether the estimate field is set. */ boolean hasEstimate(); /** * <code>.chalk.aggregate.v1.AggregateBackfillCostEstimate estimate = 2 [json_name = "estimate"];</code> * @return The estimate. */ ai.chalk.protos.chalk.aggregate.v1.AggregateBackfillCostEstimate getEstimate(); /** * <code>.chalk.aggregate.v1.AggregateBackfillCostEstimate estimate = 2 [json_name = "estimate"];</code> */ ai.chalk.protos.chalk.aggregate.v1.AggregateBackfillCostEstimateOrBuilder getEstimateOrBuilder(); /** * <code>repeated string errors = 4 [json_name = "errors"];</code> * @return A list containing the errors. */ java.util.List<java.lang.String> getErrorsList(); /** * <code>repeated string errors = 4 [json_name = "errors"];</code> * @return The count of errors. */ int getErrorsCount(); /** * <code>repeated string errors = 4 [json_name = "errors"];</code> * @param index The index of the element to return. * @return The errors at the given index. */ java.lang.String getErrors(int index); /** * <code>repeated string errors = 4 [json_name = "errors"];</code> * @param index The index of the value to return. * @return The bytes of the errors at the given index. */ com.google.protobuf.ByteString getErrorsBytes(int index); /** * <code>repeated .chalk.aggregate.v1.AggregateBackfillWithCostEstimate backfills = 6 [json_name = "backfills"];</code> */ java.util.List<ai.chalk.protos.chalk.aggregate.v1.AggregateBackfillWithCostEstimate> getBackfillsList(); /** * <code>repeated .chalk.aggregate.v1.AggregateBackfillWithCostEstimate backfills = 6 [json_name = "backfills"];</code> */ ai.chalk.protos.chalk.aggregate.v1.AggregateBackfillWithCostEstimate getBackfills(int index); /** * <code>repeated .chalk.aggregate.v1.AggregateBackfillWithCostEstimate backfills = 6 [json_name = "backfills"];</code> */ int getBackfillsCount(); /** * <code>repeated .chalk.aggregate.v1.AggregateBackfillWithCostEstimate backfills = 6 [json_name = "backfills"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.aggregate.v1.AggregateBackfillWithCostEstimateOrBuilder> getBackfillsOrBuilderList(); /** * <code>repeated .chalk.aggregate.v1.AggregateBackfillWithCostEstimate backfills = 6 [json_name = "backfills"];</code> */ ai.chalk.protos.chalk.aggregate.v1.AggregateBackfillWithCostEstimateOrBuilder getBackfillsOrBuilder( int index); /** * <code>string aggregate_backfill_id = 7 [json_name = "aggregateBackfillId"];</code> * @return The aggregateBackfillId. */ java.lang.String getAggregateBackfillId(); /** * <code>string aggregate_backfill_id = 7 [json_name = "aggregateBackfillId"];</code> * @return The bytes for aggregateBackfillId. */ com.google.protobuf.ByteString getAggregateBackfillIdBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/aggregate
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/aggregate/v1/ServiceProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/aggregate/v1/service.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.aggregate.v1; public final class ServiceProto { private ServiceProto() {} 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_chalk_aggregate_v1_PlanAggregateBackfillRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_PlanAggregateBackfillRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_aggregate_v1_PlanAggregateBackfillResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_PlanAggregateBackfillResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_aggregate_v1_GetAggregatesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_GetAggregatesRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_aggregate_v1_GetAggregatesResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_GetAggregatesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_aggregate_v1_GetAggregateBackfillJobRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_GetAggregateBackfillJobRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_aggregate_v1_GetAggregateBackfillJobResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_GetAggregateBackfillJobResponse_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 chalk/aggregate/v1/service.proto\022\022chal" + "k.aggregate.v1\032!chalk/aggregate/v1/backf" + "ill.proto\032#chalk/aggregate/v1/timeseries" + ".proto\032\031chalk/auth/v1/audit.proto\032\037chalk" + "/auth/v1/permissions.proto\"g\n\034PlanAggreg" + "ateBackfillRequest\022G\n\006params\030\001 \001(\0132/.cha" + "lk.aggregate.v1.AggregateBackfillUserPar" + "amsR\006params\"\217\002\n\035PlanAggregateBackfillRes" + "ponse\022M\n\010estimate\030\002 \001(\01321.chalk.aggregat" + "e.v1.AggregateBackfillCostEstimateR\010esti" + "mate\022\026\n\006errors\030\004 \003(\tR\006errors\022S\n\tbackfill" + "s\030\006 \003(\01325.chalk.aggregate.v1.AggregateBa" + "ckfillWithCostEstimateR\tbackfills\0222\n\025agg" + "regate_backfill_id\030\007 \001(\tR\023aggregateBackf" + "illId\"9\n\024GetAggregatesRequest\022!\n\014for_fea" + "tures\030\001 \003(\tR\013forFeatures\"p\n\025GetAggregate" + "sResponse\022?\n\006series\030\001 \003(\0132\'.chalk.aggreg" + "ate.v1.AggregateTimeSeriesR\006series\022\026\n\006er" + "rors\030\002 \003(\tR\006errors\"O\n\037GetAggregateBackfi" + "llJobsRequest\022\024\n\005limit\030\001 \001(\005R\005limit\022\026\n\006c" + "ursor\030\002 \001(\tR\006cursor\"x\n GetAggregateBackf" + "illJobsResponse\022<\n\004jobs\030\001 \003(\0132(.chalk.ag" + "gregate.v1.AggregateBackfillJobR\004jobs\022\026\n" + "\006cursor\030\002 \001(\tR\006cursor\"T\n\036GetAggregateBac" + "kfillJobRequest\0222\n\025aggregate_backfill_id" + "\030\001 \001(\tR\023aggregateBackfillId\"]\n\037GetAggreg" + "ateBackfillJobResponse\022:\n\003job\030\001 \001(\0132(.ch" + "alk.aggregate.v1.AggregateBackfillJobR\003j" + "ob2\260\004\n\020AggregateService\022\212\001\n\025PlanAggregat" + "eBackfill\0220.chalk.aggregate.v1.PlanAggre" + "gateBackfillRequest\0321.chalk.aggregate.v1" + ".PlanAggregateBackfillResponse\"\014\220\002\001\200}\014\212\323" + "\016\002\010\002\022r\n\rGetAggregates\022(.chalk.aggregate." + "v1.GetAggregatesRequest\032).chalk.aggregat" + "e.v1.GetAggregatesResponse\"\014\220\002\001\200}\013\212\323\016\002\010\002" + "\022\215\001\n\030GetAggregateBackfillJobs\0223.chalk.ag" + "gregate.v1.GetAggregateBackfillJobsReque" + "st\0324.chalk.aggregate.v1.GetAggregateBack" + "fillJobsResponse\"\006\220\002\001\200}\013\022\212\001\n\027GetAggregat" + "eBackfillJob\0222.chalk.aggregate.v1.GetAgg" + "regateBackfillJobRequest\0323.chalk.aggrega" + "te.v1.GetAggregateBackfillJobResponse\"\006\220" + "\002\001\200}\013B\266\001\n\"ai.chalk.protos.chalk.aggregat" + "e.v1B\014ServiceProtoP\001Z\030aggregate/v1;aggre" + "gatev1\242\002\003CAX\252\002\022Chalk.Aggregate.V1\312\002\022Chal" + "k\\Aggregate\\V1\342\002\036Chalk\\Aggregate\\V1\\GPBM" + "etadata\352\002\024Chalk::Aggregate::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { ai.chalk.protos.chalk.aggregate.v1.BackfillProto.getDescriptor(), ai.chalk.protos.chalk.aggregate.v1.TimeseriesProto.getDescriptor(), ai.chalk.protos.chalk.auth.v1.AuditProto.getDescriptor(), ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(), }); internal_static_chalk_aggregate_v1_PlanAggregateBackfillRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_aggregate_v1_PlanAggregateBackfillRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_PlanAggregateBackfillRequest_descriptor, new java.lang.String[] { "Params", }); internal_static_chalk_aggregate_v1_PlanAggregateBackfillResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_chalk_aggregate_v1_PlanAggregateBackfillResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_PlanAggregateBackfillResponse_descriptor, new java.lang.String[] { "Estimate", "Errors", "Backfills", "AggregateBackfillId", }); internal_static_chalk_aggregate_v1_GetAggregatesRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_chalk_aggregate_v1_GetAggregatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_GetAggregatesRequest_descriptor, new java.lang.String[] { "ForFeatures", }); internal_static_chalk_aggregate_v1_GetAggregatesResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_chalk_aggregate_v1_GetAggregatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_GetAggregatesResponse_descriptor, new java.lang.String[] { "Series", "Errors", }); internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsRequest_descriptor, new java.lang.String[] { "Limit", "Cursor", }); internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_GetAggregateBackfillJobsResponse_descriptor, new java.lang.String[] { "Jobs", "Cursor", }); internal_static_chalk_aggregate_v1_GetAggregateBackfillJobRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_chalk_aggregate_v1_GetAggregateBackfillJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_GetAggregateBackfillJobRequest_descriptor, new java.lang.String[] { "AggregateBackfillId", }); internal_static_chalk_aggregate_v1_GetAggregateBackfillJobResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_chalk_aggregate_v1_GetAggregateBackfillJobResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_GetAggregateBackfillJobResponse_descriptor, new java.lang.String[] { "Job", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(ai.chalk.protos.chalk.auth.v1.AuditProto.audit); registry.add(ai.chalk.protos.chalk.auth.v1.PermissionsProto.permission); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); ai.chalk.protos.chalk.aggregate.v1.BackfillProto.getDescriptor(); ai.chalk.protos.chalk.aggregate.v1.TimeseriesProto.getDescriptor(); ai.chalk.protos.chalk.auth.v1.AuditProto.getDescriptor(); ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/aggregate
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/aggregate/v1/TimeseriesProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/aggregate/v1/timeseries.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.aggregate.v1; public final class TimeseriesProto { private TimeseriesProto() {} 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_chalk_aggregate_v1_AggregateTimeSeriesRule_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_AggregateTimeSeriesRule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_aggregate_v1_AggregateTimeSeries_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_aggregate_v1_AggregateTimeSeries_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#chalk/aggregate/v1/timeseries.proto\022\022c" + "halk.aggregate.v1\032\036google/protobuf/durat" + "ion.proto\"\222\002\n\027AggregateTimeSeriesRule\022 \n" + "\013aggregation\030\001 \001(\tR\013aggregation\022B\n\017bucke" + "t_duration\030\002 \001(\0132\031.google.protobuf.Durat" + "ionR\016bucketDuration\022-\n\022dependent_feature" + "s\030\003 \003(\tR\021dependentFeatures\0227\n\tretention\030" + "\004 \001(\0132\031.google.protobuf.DurationR\tretent" + "ion\022)\n\020datetime_feature\030\005 \001(\tR\017datetimeF" + "eature\"\214\002\n\023AggregateTimeSeries\022\034\n\tnamesp" + "ace\030\001 \001(\tR\tnamespace\022!\n\014aggregate_on\030\002 \001" + "(\tR\013aggregateOn\022\031\n\010group_by\030\003 \003(\tR\007group" + "By\022A\n\005rules\030\005 \003(\0132+.chalk.aggregate.v1.A" + "ggregateTimeSeriesRuleR\005rules\022/\n\023filters" + "_description\030\006 \001(\tR\022filtersDescription\022%" + "\n\016bucket_feature\030\007 \001(\tR\rbucketFeatureB\271\001" + "\n\"ai.chalk.protos.chalk.aggregate.v1B\017Ti" + "meseriesProtoP\001Z\030aggregate/v1;aggregatev" + "1\242\002\003CAX\252\002\022Chalk.Aggregate.V1\312\002\022Chalk\\Agg" + "regate\\V1\342\002\036Chalk\\Aggregate\\V1\\GPBMetada" + "ta\352\002\024Chalk::Aggregate::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_chalk_aggregate_v1_AggregateTimeSeriesRule_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_aggregate_v1_AggregateTimeSeriesRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_AggregateTimeSeriesRule_descriptor, new java.lang.String[] { "Aggregation", "BucketDuration", "DependentFeatures", "Retention", "DatetimeFeature", }); internal_static_chalk_aggregate_v1_AggregateTimeSeries_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_chalk_aggregate_v1_AggregateTimeSeries_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_aggregate_v1_AggregateTimeSeries_descriptor, new java.lang.String[] { "Namespace", "AggregateOn", "GroupBy", "Rules", "FiltersDescription", "BucketFeature", }); com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ArrowProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public final class ArrowProto { private ArrowProto() {} 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_chalk_arrow_v1_Schema_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_Schema_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_Schema_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_Schema_MetadataEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_Field_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_Field_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_Field_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_Field_MetadataEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_FixedSizeBinary_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_FixedSizeBinary_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_Timestamp_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_Timestamp_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_Decimal_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_Decimal_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_List_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_List_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_FixedSizeList_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_FixedSizeList_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_Struct_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_Struct_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_Map_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_Map_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_ScalarListValue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_ScalarListValue_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_ScalarTime32Value_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_ScalarTime32Value_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_ScalarTime64Value_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_ScalarTime64Value_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_ScalarTimestampValue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_ScalarTimestampValue_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_StructValue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_StructValue_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_DecimalValue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_DecimalValue_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_Extension_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_Extension_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_ExtensionValue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_ExtensionValue_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_ScalarValue_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_ScalarValue_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_ArrowType_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_ArrowType_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_arrow_v1_EmptyMessage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_arrow_v1_EmptyMessage_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\032chalk/arrow/v1/arrow.proto\022\016chalk.arro" + "w.v1\"\270\001\n\006Schema\022/\n\007columns\030\001 \003(\0132\025.chalk" + ".arrow.v1.FieldR\007columns\022@\n\010metadata\030\002 \003" + "(\0132$.chalk.arrow.v1.Schema.MetadataEntry" + "R\010metadata\032;\n\rMetadataEntry\022\020\n\003key\030\001 \001(\t" + "R\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\242\002\n\005Fiel" + "d\022\022\n\004name\030\001 \001(\tR\004name\0228\n\narrow_type\030\002 \001(" + "\0132\031.chalk.arrow.v1.ArrowTypeR\tarrowType\022" + "\032\n\010nullable\030\003 \001(\010R\010nullable\0221\n\010children\030" + "\004 \003(\0132\025.chalk.arrow.v1.FieldR\010children\022?" + "\n\010metadata\030\005 \003(\0132#.chalk.arrow.v1.Field." + "MetadataEntryR\010metadata\032;\n\rMetadataEntry" + "\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value" + ":\0028\001\")\n\017FixedSizeBinary\022\026\n\006length\030\001 \001(\005R" + "\006length\"^\n\tTimestamp\0225\n\ttime_unit\030\001 \001(\0162" + "\030.chalk.arrow.v1.TimeUnitR\010timeUnit\022\032\n\010t" + "imezone\030\002 \001(\tR\010timezone\"=\n\007Decimal\022\034\n\tpr" + "ecision\030\001 \001(\005R\tprecision\022\024\n\005scale\030\002 \001(\005R" + "\005scale\"<\n\004List\0224\n\nfield_type\030\001 \001(\0132\025.cha" + "lk.arrow.v1.FieldR\tfieldType\"b\n\rFixedSiz" + "eList\0224\n\nfield_type\030\001 \001(\0132\025.chalk.arrow." + "v1.FieldR\tfieldType\022\033\n\tlist_size\030\002 \001(\005R\010" + "listSize\"G\n\006Struct\022=\n\017sub_field_types\030\001 " + "\003(\0132\025.chalk.arrow.v1.FieldR\rsubFieldType" + "s\"\220\001\n\003Map\0222\n\tkey_field\030\001 \001(\0132\025.chalk.arr" + "ow.v1.FieldR\010keyField\0224\n\nitem_field\030\002 \001(" + "\0132\025.chalk.arrow.v1.FieldR\titemField\022\037\n\013k" + "eys_sorted\030\003 \001(\010R\nkeysSorted\"`\n\017ScalarLi" + "stValue\022\035\n\narrow_data\030\001 \001(\014R\tarrowData\022." + "\n\006schema\030\002 \001(\0132\026.chalk.arrow.v1.SchemaR\006" + "schema\"\212\001\n\021ScalarTime32Value\0220\n\023time32_s" + "econd_value\030\001 \001(\005H\000R\021time32SecondValue\022:" + "\n\030time32_millisecond_value\030\002 \001(\005H\000R\026time" + "32MillisecondValueB\007\n\005value\"\222\001\n\021ScalarTi" + "me64Value\022:\n\030time64_microsecond_value\030\001 " + "\001(\003H\000R\026time64MicrosecondValue\0228\n\027time64_" + "nanosecond_value\030\002 \001(\003H\000R\025time64Nanoseco" + "ndValueB\007\n\005value\"\217\002\n\024ScalarTimestampValu" + "e\0226\n\026time_microsecond_value\030\001 \001(\003H\000R\024tim" + "eMicrosecondValue\0224\n\025time_nanosecond_val" + "ue\030\002 \001(\003H\000R\023timeNanosecondValue\022,\n\021time_" + "second_value\030\003 \001(\003H\000R\017timeSecondValue\0226\n" + "\026time_millisecond_value\030\004 \001(\003H\000R\024timeMil" + "lisecondValue\022\032\n\010timezone\030\005 \001(\tR\010timezon" + "eB\007\n\005value\"|\n\013StructValue\022>\n\014field_value" + "s\030\002 \003(\0132\033.chalk.arrow.v1.ScalarValueR\013fi" + "eldValues\022-\n\006fields\030\003 \003(\0132\025.chalk.arrow." + "v1.FieldR\006fields\"G\n\025ScalarFixedSizeBinar" + "y\022\026\n\006values\030\001 \001(\014R\006values\022\026\n\006length\030\002 \001(" + "\005R\006length\"X\n\014DecimalValue\022\024\n\005value\030\001 \001(\014" + "R\005value\022\034\n\tprecision\030\002 \001(\005R\tprecision\022\024\n" + "\005scale\030\003 \001(\005R\005scale\"]\n\tExtension\022\022\n\004name" + "\030\001 \001(\tR\004name\022<\n\014storage_type\030\002 \001(\0132\031.cha" + "lk.arrow.v1.ArrowTypeR\013storageType\"\224\001\n\016E" + "xtensionValue\022@\n\016extension_type\030\001 \001(\0132\031." + "chalk.arrow.v1.ExtensionR\rextensionType\022" + "@\n\rstorage_value\030\002 \001(\0132\033.chalk.arrow.v1." + "ScalarValueR\014storageValue\"\357\016\n\013ScalarValu" + "e\022:\n\nnull_value\030\001 \001(\0132\031.chalk.arrow.v1.A" + "rrowTypeH\000R\tnullValue\022\037\n\nbool_value\030\002 \001(" + "\010H\000R\tboolValue\022%\n\rfloat64_value\030\003 \001(\001H\000R" + "\014float64Value\022!\n\013int64_value\030\004 \001(\003H\000R\nin" + "t64Value\022*\n\020large_utf8_value\030\005 \001(\tH\000R\016la" + "rgeUtf8Value\022O\n\017timestamp_value\030\006 \001(\0132$." + "chalk.arrow.v1.ScalarTimestampValueH\000R\016t" + "imestampValue\022$\n\rdate_64_value\030\007 \001(\003H\000R\013" + "date64Value\022@\n\014struct_value\030\010 \001(\0132\033.chal" + "k.arrow.v1.StructValueH\000R\013structValue\022K\n" + "\020large_list_value\030\t \001(\0132\037.chalk.arrow.v1" + ".ScalarListValueH\000R\016largeListValue\022F\n\014ti" + "me64_value\030\n \001(\0132!.chalk.arrow.v1.Scalar" + "Time64ValueH\000R\013time64Value\0224\n\025duration_s" + "econd_value\030\020 \001(\003H\000R\023durationSecondValue" + "\022>\n\032duration_millisecond_value\030\021 \001(\003H\000R\030" + "durationMillisecondValue\022>\n\032duration_mic" + "rosecond_value\030\022 \001(\003H\000R\030durationMicrosec" + "ondValue\022<\n\031duration_nanosecond_value\030\023 " + "\001(\003H\000R\027durationNanosecondValue\022\037\n\nutf8_v" + "alue\030\024 \001(\tH\000R\tutf8Value\022\037\n\nint8_value\030\025 " + "\001(\005H\000R\tint8Value\022!\n\013int16_value\030\026 \001(\005H\000R" + "\nint16Value\022!\n\013int32_value\030\027 \001(\005H\000R\nint3" + "2Value\022!\n\013uint8_value\030\030 \001(\rH\000R\nuint8Valu" + "e\022#\n\014uint16_value\030\031 \001(\rH\000R\013uint16Value\022#" + "\n\014uint32_value\030\032 \001(\rH\000R\013uint32Value\022#\n\014u" + "int64_value\030\033 \001(\004H\000R\013uint64Value\022%\n\rfloa" + "t16_value\030\034 \001(\002H\000R\014float16Value\022%\n\rfloat" + "32_value\030\035 \001(\002H\000R\014float32Value\022$\n\rdate_3" + "2_value\030\036 \001(\005H\000R\013date32Value\022F\n\014time32_v" + "alue\030\037 \001(\0132!.chalk.arrow.v1.ScalarTime32" + "ValueH\000R\013time32Value\022@\n\nlist_value\030 \001(\013" + "2\037.chalk.arrow.v1.ScalarListValueH\000R\tlis" + "tValue\022T\n\025fixed_size_list_value\030! \001(\0132\037." + "chalk.arrow.v1.ScalarListValueH\000R\022fixedS" + "izeListValue\022>\n\tmap_value\030\" \001(\0132\037.chalk." + "arrow.v1.ScalarListValueH\000R\010mapValue\022#\n\014" + "binary_value\030# \001(\014H\000R\013binaryValue\022.\n\022lar" + "ge_binary_value\030$ \001(\014H\000R\020largeBinaryValu" + "e\022^\n\027fixed_size_binary_value\030% \001(\0132%.cha" + "lk.arrow.v1.ScalarFixedSizeBinaryH\000R\024fix" + "edSizeBinaryValue\022I\n\020decimal128_value\030& " + "\001(\0132\034.chalk.arrow.v1.DecimalValueH\000R\017dec" + "imal128Value\022I\n\020decimal256_value\030\' \001(\0132\034" + ".chalk.arrow.v1.DecimalValueH\000R\017decimal2" + "56Value\022I\n\017extension_value\030( \001(\0132\036.chalk" + ".arrow.v1.ExtensionValueH\000R\016extensionVal" + "ueB\007\n\005value\"\211\016\n\tArrowType\0222\n\004none\030\001 \001(\0132" + "\034.chalk.arrow.v1.EmptyMessageH\000R\004none\0222\n" + "\004bool\030\002 \001(\0132\034.chalk.arrow.v1.EmptyMessag" + "eH\000R\004bool\0228\n\007float64\030\003 \001(\0132\034.chalk.arrow" + ".v1.EmptyMessageH\000R\007float64\0224\n\005int64\030\004 \001" + "(\0132\034.chalk.arrow.v1.EmptyMessageH\000R\005int6" + "4\022=\n\nlarge_utf8\030\005 \001(\0132\034.chalk.arrow.v1.E" + "mptyMessageH\000R\tlargeUtf8\0229\n\ttimestamp\030\006 " + "\001(\0132\031.chalk.arrow.v1.TimestampH\000R\ttimest" + "amp\0226\n\006date64\030\007 \001(\0132\034.chalk.arrow.v1.Emp" + "tyMessageH\000R\006date64\0220\n\006struct\030\010 \001(\0132\026.ch" + "alk.arrow.v1.StructH\000R\006struct\0225\n\nlarge_l" + "ist\030\t \001(\0132\024.chalk.arrow.v1.ListH\000R\tlarge" + "List\0222\n\006time64\030\n \001(\0162\030.chalk.arrow.v1.Ti" + "meUnitH\000R\006time64\0226\n\010duration\030\020 \001(\0162\030.cha" + "lk.arrow.v1.TimeUnitH\000R\010duration\0222\n\004utf8" + "\030\021 \001(\0132\034.chalk.arrow.v1.EmptyMessageH\000R\004" + "utf8\0222\n\004int8\030\022 \001(\0132\034.chalk.arrow.v1.Empt" + "yMessageH\000R\004int8\0224\n\005int16\030\023 \001(\0132\034.chalk." + "arrow.v1.EmptyMessageH\000R\005int16\0224\n\005int32\030" + "\024 \001(\0132\034.chalk.arrow.v1.EmptyMessageH\000R\005i" + "nt32\0224\n\005uint8\030\025 \001(\0132\034.chalk.arrow.v1.Emp" + "tyMessageH\000R\005uint8\0226\n\006uint16\030\026 \001(\0132\034.cha" + "lk.arrow.v1.EmptyMessageH\000R\006uint16\0226\n\006ui" + "nt32\030\027 \001(\0132\034.chalk.arrow.v1.EmptyMessage" + "H\000R\006uint32\0226\n\006uint64\030\030 \001(\0132\034.chalk.arrow" + ".v1.EmptyMessageH\000R\006uint64\0228\n\007float16\030\031 " + "\001(\0132\034.chalk.arrow.v1.EmptyMessageH\000R\007flo" + "at16\0228\n\007float32\030\032 \001(\0132\034.chalk.arrow.v1.E" + "mptyMessageH\000R\007float32\0226\n\006date32\030\033 \001(\0132\034" + ".chalk.arrow.v1.EmptyMessageH\000R\006date32\0222" + "\n\006time32\030\034 \001(\0162\030.chalk.arrow.v1.TimeUnit" + "H\000R\006time32\022*\n\004list\030\035 \001(\0132\024.chalk.arrow.v" + "1.ListH\000R\004list\022G\n\017fixed_size_list\030\036 \001(\0132" + "\035.chalk.arrow.v1.FixedSizeListH\000R\rfixedS" + "izeList\0226\n\006binary\030\037 \001(\0132\034.chalk.arrow.v1" + ".EmptyMessageH\000R\006binary\022A\n\014large_binary\030" + " \001(\0132\034.chalk.arrow.v1.EmptyMessageH\000R\013l" + "argeBinary\022,\n\021fixed_size_binary\030! \001(\005H\000R" + "\017fixedSizeBinary\022:\n\013decimal_128\030\" \001(\0132\027." + "chalk.arrow.v1.DecimalH\000R\ndecimal128\022:\n\013" + "decimal_256\030# \001(\0132\027.chalk.arrow.v1.Decim" + "alH\000R\ndecimal256\022\'\n\003map\030$ \001(\0132\023.chalk.ar" + "row.v1.MapH\000R\003map\0229\n\textension\030% \001(\0132\031.c" + "halk.arrow.v1.ExtensionH\000R\textensionB\021\n\017" + "arrow_type_enum\"\016\n\014EmptyMessage*\213\001\n\010Time" + "Unit\022\031\n\025TIME_UNIT_UNSPECIFIED\020\000\022\024\n\020TIME_" + "UNIT_SECOND\020\001\022\031\n\025TIME_UNIT_MILLISECOND\020\002" + "\022\031\n\025TIME_UNIT_MICROSECOND\020\003\022\030\n\024TIME_UNIT" + "_NANOSECOND\020\004*\232\001\n\022FeatherCompression\022#\n\037" + "FEATHER_COMPRESSION_UNSPECIFIED\020\000\022$\n FEA" + "THER_COMPRESSION_UNCOMPRESSED\020\001\022\033\n\027FEATH" + "ER_COMPRESSION_LZ4\020\002\022\034\n\030FEATHER_COMPRESS" + "ION_ZSTD\020\003B\206\001\n\036ai.chalk.protos.chalk.arr" + "ow.v1B\nArrowProtoP\001\242\002\003CAX\252\002\016Chalk.Arrow." + "V1\312\002\016Chalk\\Arrow\\V1\342\002\032Chalk\\Arrow\\V1\\GPB" + "Metadata\352\002\020Chalk::Arrow::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_chalk_arrow_v1_Schema_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_arrow_v1_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_Schema_descriptor, new java.lang.String[] { "Columns", "Metadata", }); internal_static_chalk_arrow_v1_Schema_MetadataEntry_descriptor = internal_static_chalk_arrow_v1_Schema_descriptor.getNestedTypes().get(0); internal_static_chalk_arrow_v1_Schema_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_Schema_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_arrow_v1_Field_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_chalk_arrow_v1_Field_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_Field_descriptor, new java.lang.String[] { "Name", "ArrowType", "Nullable", "Children", "Metadata", }); internal_static_chalk_arrow_v1_Field_MetadataEntry_descriptor = internal_static_chalk_arrow_v1_Field_descriptor.getNestedTypes().get(0); internal_static_chalk_arrow_v1_Field_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_Field_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_arrow_v1_FixedSizeBinary_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_chalk_arrow_v1_FixedSizeBinary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_FixedSizeBinary_descriptor, new java.lang.String[] { "Length", }); internal_static_chalk_arrow_v1_Timestamp_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_chalk_arrow_v1_Timestamp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_Timestamp_descriptor, new java.lang.String[] { "TimeUnit", "Timezone", }); internal_static_chalk_arrow_v1_Decimal_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_chalk_arrow_v1_Decimal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_Decimal_descriptor, new java.lang.String[] { "Precision", "Scale", }); internal_static_chalk_arrow_v1_List_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_chalk_arrow_v1_List_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_List_descriptor, new java.lang.String[] { "FieldType", }); internal_static_chalk_arrow_v1_FixedSizeList_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_chalk_arrow_v1_FixedSizeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_FixedSizeList_descriptor, new java.lang.String[] { "FieldType", "ListSize", }); internal_static_chalk_arrow_v1_Struct_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_chalk_arrow_v1_Struct_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_Struct_descriptor, new java.lang.String[] { "SubFieldTypes", }); internal_static_chalk_arrow_v1_Map_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_chalk_arrow_v1_Map_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_Map_descriptor, new java.lang.String[] { "KeyField", "ItemField", "KeysSorted", }); internal_static_chalk_arrow_v1_ScalarListValue_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_chalk_arrow_v1_ScalarListValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_ScalarListValue_descriptor, new java.lang.String[] { "ArrowData", "Schema", }); internal_static_chalk_arrow_v1_ScalarTime32Value_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_chalk_arrow_v1_ScalarTime32Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_ScalarTime32Value_descriptor, new java.lang.String[] { "Time32SecondValue", "Time32MillisecondValue", "Value", }); internal_static_chalk_arrow_v1_ScalarTime64Value_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_chalk_arrow_v1_ScalarTime64Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_ScalarTime64Value_descriptor, new java.lang.String[] { "Time64MicrosecondValue", "Time64NanosecondValue", "Value", }); internal_static_chalk_arrow_v1_ScalarTimestampValue_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_chalk_arrow_v1_ScalarTimestampValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_ScalarTimestampValue_descriptor, new java.lang.String[] { "TimeMicrosecondValue", "TimeNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "Timezone", "Value", }); internal_static_chalk_arrow_v1_StructValue_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_chalk_arrow_v1_StructValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_StructValue_descriptor, new java.lang.String[] { "FieldValues", "Fields", }); internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_descriptor, new java.lang.String[] { "Values", "Length", }); internal_static_chalk_arrow_v1_DecimalValue_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_chalk_arrow_v1_DecimalValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_DecimalValue_descriptor, new java.lang.String[] { "Value", "Precision", "Scale", }); internal_static_chalk_arrow_v1_Extension_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_chalk_arrow_v1_Extension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_Extension_descriptor, new java.lang.String[] { "Name", "StorageType", }); internal_static_chalk_arrow_v1_ExtensionValue_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_chalk_arrow_v1_ExtensionValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_ExtensionValue_descriptor, new java.lang.String[] { "ExtensionType", "StorageValue", }); internal_static_chalk_arrow_v1_ScalarValue_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_chalk_arrow_v1_ScalarValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_ScalarValue_descriptor, new java.lang.String[] { "NullValue", "BoolValue", "Float64Value", "Int64Value", "LargeUtf8Value", "TimestampValue", "Date64Value", "StructValue", "LargeListValue", "Time64Value", "DurationSecondValue", "DurationMillisecondValue", "DurationMicrosecondValue", "DurationNanosecondValue", "Utf8Value", "Int8Value", "Int16Value", "Int32Value", "Uint8Value", "Uint16Value", "Uint32Value", "Uint64Value", "Float16Value", "Float32Value", "Date32Value", "Time32Value", "ListValue", "FixedSizeListValue", "MapValue", "BinaryValue", "LargeBinaryValue", "FixedSizeBinaryValue", "Decimal128Value", "Decimal256Value", "ExtensionValue", "Value", }); internal_static_chalk_arrow_v1_ArrowType_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_chalk_arrow_v1_ArrowType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_ArrowType_descriptor, new java.lang.String[] { "None", "Bool", "Float64", "Int64", "LargeUtf8", "Timestamp", "Date64", "Struct", "LargeList", "Time64", "Duration", "Utf8", "Int8", "Int16", "Int32", "Uint8", "Uint16", "Uint32", "Uint64", "Float16", "Float32", "Date32", "Time32", "List", "FixedSizeList", "Binary", "LargeBinary", "FixedSizeBinary", "Decimal128", "Decimal256", "Map", "Extension", "ArrowTypeEnum", }); internal_static_chalk_arrow_v1_EmptyMessage_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_chalk_arrow_v1_EmptyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_arrow_v1_EmptyMessage_descriptor, new java.lang.String[] { }); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ArrowType.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.ArrowType} */ public final class ArrowType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.ArrowType) ArrowTypeOrBuilder { private static final long serialVersionUID = 0L; // Use ArrowType.newBuilder() to construct. private ArrowType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ArrowType() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ArrowType(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ArrowType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ArrowType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ArrowType.class, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder.class); } private int arrowTypeEnumCase_ = 0; @SuppressWarnings("serial") private java.lang.Object arrowTypeEnum_; public enum ArrowTypeEnumCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NONE(1), BOOL(2), FLOAT64(3), INT64(4), LARGE_UTF8(5), TIMESTAMP(6), DATE64(7), STRUCT(8), LARGE_LIST(9), TIME64(10), DURATION(16), UTF8(17), INT8(18), INT16(19), INT32(20), UINT8(21), UINT16(22), UINT32(23), UINT64(24), FLOAT16(25), FLOAT32(26), DATE32(27), TIME32(28), LIST(29), FIXED_SIZE_LIST(30), BINARY(31), LARGE_BINARY(32), FIXED_SIZE_BINARY(33), DECIMAL_128(34), DECIMAL_256(35), MAP(36), EXTENSION(37), ARROWTYPEENUM_NOT_SET(0); private final int value; private ArrowTypeEnumCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ArrowTypeEnumCase valueOf(int value) { return forNumber(value); } public static ArrowTypeEnumCase forNumber(int value) { switch (value) { case 1: return NONE; case 2: return BOOL; case 3: return FLOAT64; case 4: return INT64; case 5: return LARGE_UTF8; case 6: return TIMESTAMP; case 7: return DATE64; case 8: return STRUCT; case 9: return LARGE_LIST; case 10: return TIME64; case 16: return DURATION; case 17: return UTF8; case 18: return INT8; case 19: return INT16; case 20: return INT32; case 21: return UINT8; case 22: return UINT16; case 23: return UINT32; case 24: return UINT64; case 25: return FLOAT16; case 26: return FLOAT32; case 27: return DATE32; case 28: return TIME32; case 29: return LIST; case 30: return FIXED_SIZE_LIST; case 31: return BINARY; case 32: return LARGE_BINARY; case 33: return FIXED_SIZE_BINARY; case 34: return DECIMAL_128; case 35: return DECIMAL_256; case 36: return MAP; case 37: return EXTENSION; case 0: return ARROWTYPEENUM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ArrowTypeEnumCase getArrowTypeEnumCase() { return ArrowTypeEnumCase.forNumber( arrowTypeEnumCase_); } public static final int NONE_FIELD_NUMBER = 1; /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> * @return Whether the none field is set. */ @java.lang.Override public boolean hasNone() { return arrowTypeEnumCase_ == 1; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> * @return The none. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getNone() { if (arrowTypeEnumCase_ == 1) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getNoneOrBuilder() { if (arrowTypeEnumCase_ == 1) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int BOOL_FIELD_NUMBER = 2; /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> * @return Whether the bool field is set. */ @java.lang.Override public boolean hasBool() { return arrowTypeEnumCase_ == 2; } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> * @return The bool. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getBool() { if (arrowTypeEnumCase_ == 2) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getBoolOrBuilder() { if (arrowTypeEnumCase_ == 2) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int FLOAT64_FIELD_NUMBER = 3; /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> * @return Whether the float64 field is set. */ @java.lang.Override public boolean hasFloat64() { return arrowTypeEnumCase_ == 3; } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> * @return The float64. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getFloat64() { if (arrowTypeEnumCase_ == 3) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getFloat64OrBuilder() { if (arrowTypeEnumCase_ == 3) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int INT64_FIELD_NUMBER = 4; /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> * @return Whether the int64 field is set. */ @java.lang.Override public boolean hasInt64() { return arrowTypeEnumCase_ == 4; } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> * @return The int64. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt64() { if (arrowTypeEnumCase_ == 4) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt64OrBuilder() { if (arrowTypeEnumCase_ == 4) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int LARGE_UTF8_FIELD_NUMBER = 5; /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> * @return Whether the largeUtf8 field is set. */ @java.lang.Override public boolean hasLargeUtf8() { return arrowTypeEnumCase_ == 5; } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> * @return The largeUtf8. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getLargeUtf8() { if (arrowTypeEnumCase_ == 5) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getLargeUtf8OrBuilder() { if (arrowTypeEnumCase_ == 5) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int TIMESTAMP_FIELD_NUMBER = 6; /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return arrowTypeEnumCase_ == 6; } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> * @return The timestamp. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Timestamp getTimestamp() { if (arrowTypeEnumCase_ == 6) { return (ai.chalk.protos.chalk.arrow.v1.Timestamp) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Timestamp.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.TimestampOrBuilder getTimestampOrBuilder() { if (arrowTypeEnumCase_ == 6) { return (ai.chalk.protos.chalk.arrow.v1.Timestamp) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Timestamp.getDefaultInstance(); } public static final int DATE64_FIELD_NUMBER = 7; /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> * @return Whether the date64 field is set. */ @java.lang.Override public boolean hasDate64() { return arrowTypeEnumCase_ == 7; } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> * @return The date64. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getDate64() { if (arrowTypeEnumCase_ == 7) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getDate64OrBuilder() { if (arrowTypeEnumCase_ == 7) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int STRUCT_FIELD_NUMBER = 8; /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return arrowTypeEnumCase_ == 8; } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> * @return The struct. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Struct getStruct() { if (arrowTypeEnumCase_ == 8) { return (ai.chalk.protos.chalk.arrow.v1.Struct) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Struct.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructOrBuilder getStructOrBuilder() { if (arrowTypeEnumCase_ == 8) { return (ai.chalk.protos.chalk.arrow.v1.Struct) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Struct.getDefaultInstance(); } public static final int LARGE_LIST_FIELD_NUMBER = 9; /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> * @return Whether the largeList field is set. */ @java.lang.Override public boolean hasLargeList() { return arrowTypeEnumCase_ == 9; } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> * @return The largeList. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.List getLargeList() { if (arrowTypeEnumCase_ == 9) { return (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ListOrBuilder getLargeListOrBuilder() { if (arrowTypeEnumCase_ == 9) { return (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } public static final int TIME64_FIELD_NUMBER = 10; /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return Whether the time64 field is set. */ public boolean hasTime64() { return arrowTypeEnumCase_ == 10; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return The enum numeric value on the wire for time64. */ public int getTime64Value() { if (arrowTypeEnumCase_ == 10) { return (java.lang.Integer) arrowTypeEnum_; } return 0; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return The time64. */ public ai.chalk.protos.chalk.arrow.v1.TimeUnit getTime64() { if (arrowTypeEnumCase_ == 10) { ai.chalk.protos.chalk.arrow.v1.TimeUnit result = ai.chalk.protos.chalk.arrow.v1.TimeUnit.forNumber( (java.lang.Integer) arrowTypeEnum_); return result == null ? ai.chalk.protos.chalk.arrow.v1.TimeUnit.UNRECOGNIZED : result; } return ai.chalk.protos.chalk.arrow.v1.TimeUnit.TIME_UNIT_UNSPECIFIED; } public static final int DURATION_FIELD_NUMBER = 16; /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return Whether the duration field is set. */ public boolean hasDuration() { return arrowTypeEnumCase_ == 16; } /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return The enum numeric value on the wire for duration. */ public int getDurationValue() { if (arrowTypeEnumCase_ == 16) { return (java.lang.Integer) arrowTypeEnum_; } return 0; } /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return The duration. */ public ai.chalk.protos.chalk.arrow.v1.TimeUnit getDuration() { if (arrowTypeEnumCase_ == 16) { ai.chalk.protos.chalk.arrow.v1.TimeUnit result = ai.chalk.protos.chalk.arrow.v1.TimeUnit.forNumber( (java.lang.Integer) arrowTypeEnum_); return result == null ? ai.chalk.protos.chalk.arrow.v1.TimeUnit.UNRECOGNIZED : result; } return ai.chalk.protos.chalk.arrow.v1.TimeUnit.TIME_UNIT_UNSPECIFIED; } public static final int UTF8_FIELD_NUMBER = 17; /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> * @return Whether the utf8 field is set. */ @java.lang.Override public boolean hasUtf8() { return arrowTypeEnumCase_ == 17; } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> * @return The utf8. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUtf8() { if (arrowTypeEnumCase_ == 17) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUtf8OrBuilder() { if (arrowTypeEnumCase_ == 17) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int INT8_FIELD_NUMBER = 18; /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> * @return Whether the int8 field is set. */ @java.lang.Override public boolean hasInt8() { return arrowTypeEnumCase_ == 18; } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> * @return The int8. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt8() { if (arrowTypeEnumCase_ == 18) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt8OrBuilder() { if (arrowTypeEnumCase_ == 18) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int INT16_FIELD_NUMBER = 19; /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> * @return Whether the int16 field is set. */ @java.lang.Override public boolean hasInt16() { return arrowTypeEnumCase_ == 19; } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> * @return The int16. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt16() { if (arrowTypeEnumCase_ == 19) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt16OrBuilder() { if (arrowTypeEnumCase_ == 19) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int INT32_FIELD_NUMBER = 20; /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> * @return Whether the int32 field is set. */ @java.lang.Override public boolean hasInt32() { return arrowTypeEnumCase_ == 20; } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> * @return The int32. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt32() { if (arrowTypeEnumCase_ == 20) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt32OrBuilder() { if (arrowTypeEnumCase_ == 20) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int UINT8_FIELD_NUMBER = 21; /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> * @return Whether the uint8 field is set. */ @java.lang.Override public boolean hasUint8() { return arrowTypeEnumCase_ == 21; } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> * @return The uint8. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint8() { if (arrowTypeEnumCase_ == 21) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint8OrBuilder() { if (arrowTypeEnumCase_ == 21) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int UINT16_FIELD_NUMBER = 22; /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> * @return Whether the uint16 field is set. */ @java.lang.Override public boolean hasUint16() { return arrowTypeEnumCase_ == 22; } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> * @return The uint16. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint16() { if (arrowTypeEnumCase_ == 22) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint16OrBuilder() { if (arrowTypeEnumCase_ == 22) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int UINT32_FIELD_NUMBER = 23; /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> * @return Whether the uint32 field is set. */ @java.lang.Override public boolean hasUint32() { return arrowTypeEnumCase_ == 23; } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> * @return The uint32. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint32() { if (arrowTypeEnumCase_ == 23) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint32OrBuilder() { if (arrowTypeEnumCase_ == 23) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int UINT64_FIELD_NUMBER = 24; /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> * @return Whether the uint64 field is set. */ @java.lang.Override public boolean hasUint64() { return arrowTypeEnumCase_ == 24; } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> * @return The uint64. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint64() { if (arrowTypeEnumCase_ == 24) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint64OrBuilder() { if (arrowTypeEnumCase_ == 24) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int FLOAT16_FIELD_NUMBER = 25; /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> * @return Whether the float16 field is set. */ @java.lang.Override public boolean hasFloat16() { return arrowTypeEnumCase_ == 25; } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> * @return The float16. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getFloat16() { if (arrowTypeEnumCase_ == 25) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getFloat16OrBuilder() { if (arrowTypeEnumCase_ == 25) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int FLOAT32_FIELD_NUMBER = 26; /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> * @return Whether the float32 field is set. */ @java.lang.Override public boolean hasFloat32() { return arrowTypeEnumCase_ == 26; } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> * @return The float32. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getFloat32() { if (arrowTypeEnumCase_ == 26) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getFloat32OrBuilder() { if (arrowTypeEnumCase_ == 26) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int DATE32_FIELD_NUMBER = 27; /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> * @return Whether the date32 field is set. */ @java.lang.Override public boolean hasDate32() { return arrowTypeEnumCase_ == 27; } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> * @return The date32. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getDate32() { if (arrowTypeEnumCase_ == 27) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getDate32OrBuilder() { if (arrowTypeEnumCase_ == 27) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int TIME32_FIELD_NUMBER = 28; /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return Whether the time32 field is set. */ public boolean hasTime32() { return arrowTypeEnumCase_ == 28; } /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return The enum numeric value on the wire for time32. */ public int getTime32Value() { if (arrowTypeEnumCase_ == 28) { return (java.lang.Integer) arrowTypeEnum_; } return 0; } /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return The time32. */ public ai.chalk.protos.chalk.arrow.v1.TimeUnit getTime32() { if (arrowTypeEnumCase_ == 28) { ai.chalk.protos.chalk.arrow.v1.TimeUnit result = ai.chalk.protos.chalk.arrow.v1.TimeUnit.forNumber( (java.lang.Integer) arrowTypeEnum_); return result == null ? ai.chalk.protos.chalk.arrow.v1.TimeUnit.UNRECOGNIZED : result; } return ai.chalk.protos.chalk.arrow.v1.TimeUnit.TIME_UNIT_UNSPECIFIED; } public static final int LIST_FIELD_NUMBER = 29; /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return arrowTypeEnumCase_ == 29; } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> * @return The list. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.List getList() { if (arrowTypeEnumCase_ == 29) { return (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ListOrBuilder getListOrBuilder() { if (arrowTypeEnumCase_ == 29) { return (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } public static final int FIXED_SIZE_LIST_FIELD_NUMBER = 30; /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> * @return Whether the fixedSizeList field is set. */ @java.lang.Override public boolean hasFixedSizeList() { return arrowTypeEnumCase_ == 30; } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> * @return The fixedSizeList. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeList getFixedSizeList() { if (arrowTypeEnumCase_ == 30) { return (ai.chalk.protos.chalk.arrow.v1.FixedSizeList) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.FixedSizeList.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeListOrBuilder getFixedSizeListOrBuilder() { if (arrowTypeEnumCase_ == 30) { return (ai.chalk.protos.chalk.arrow.v1.FixedSizeList) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.FixedSizeList.getDefaultInstance(); } public static final int BINARY_FIELD_NUMBER = 31; /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> * @return Whether the binary field is set. */ @java.lang.Override public boolean hasBinary() { return arrowTypeEnumCase_ == 31; } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> * @return The binary. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getBinary() { if (arrowTypeEnumCase_ == 31) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getBinaryOrBuilder() { if (arrowTypeEnumCase_ == 31) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int LARGE_BINARY_FIELD_NUMBER = 32; /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> * @return Whether the largeBinary field is set. */ @java.lang.Override public boolean hasLargeBinary() { return arrowTypeEnumCase_ == 32; } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> * @return The largeBinary. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getLargeBinary() { if (arrowTypeEnumCase_ == 32) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getLargeBinaryOrBuilder() { if (arrowTypeEnumCase_ == 32) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } public static final int FIXED_SIZE_BINARY_FIELD_NUMBER = 33; /** * <code>int32 fixed_size_binary = 33 [json_name = "fixedSizeBinary"];</code> * @return Whether the fixedSizeBinary field is set. */ @java.lang.Override public boolean hasFixedSizeBinary() { return arrowTypeEnumCase_ == 33; } /** * <code>int32 fixed_size_binary = 33 [json_name = "fixedSizeBinary"];</code> * @return The fixedSizeBinary. */ @java.lang.Override public int getFixedSizeBinary() { if (arrowTypeEnumCase_ == 33) { return (java.lang.Integer) arrowTypeEnum_; } return 0; } public static final int DECIMAL_128_FIELD_NUMBER = 34; /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> * @return Whether the decimal128 field is set. */ @java.lang.Override public boolean hasDecimal128() { return arrowTypeEnumCase_ == 34; } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> * @return The decimal128. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Decimal getDecimal128() { if (arrowTypeEnumCase_ == 34) { return (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder getDecimal128OrBuilder() { if (arrowTypeEnumCase_ == 34) { return (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } public static final int DECIMAL_256_FIELD_NUMBER = 35; /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> * @return Whether the decimal256 field is set. */ @java.lang.Override public boolean hasDecimal256() { return arrowTypeEnumCase_ == 35; } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> * @return The decimal256. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Decimal getDecimal256() { if (arrowTypeEnumCase_ == 35) { return (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder getDecimal256OrBuilder() { if (arrowTypeEnumCase_ == 35) { return (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } public static final int MAP_FIELD_NUMBER = 36; /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> * @return Whether the map field is set. */ @java.lang.Override public boolean hasMap() { return arrowTypeEnumCase_ == 36; } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> * @return The map. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Map getMap() { if (arrowTypeEnumCase_ == 36) { return (ai.chalk.protos.chalk.arrow.v1.Map) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Map.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.MapOrBuilder getMapOrBuilder() { if (arrowTypeEnumCase_ == 36) { return (ai.chalk.protos.chalk.arrow.v1.Map) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Map.getDefaultInstance(); } public static final int EXTENSION_FIELD_NUMBER = 37; /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> * @return Whether the extension field is set. */ @java.lang.Override public boolean hasExtension() { return arrowTypeEnumCase_ == 37; } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> * @return The extension. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Extension getExtension() { if (arrowTypeEnumCase_ == 37) { return (ai.chalk.protos.chalk.arrow.v1.Extension) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder getExtensionOrBuilder() { if (arrowTypeEnumCase_ == 37) { return (ai.chalk.protos.chalk.arrow.v1.Extension) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Extension.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 (arrowTypeEnumCase_ == 1) { output.writeMessage(1, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 2) { output.writeMessage(2, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 3) { output.writeMessage(3, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 4) { output.writeMessage(4, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 5) { output.writeMessage(5, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 6) { output.writeMessage(6, (ai.chalk.protos.chalk.arrow.v1.Timestamp) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 7) { output.writeMessage(7, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 8) { output.writeMessage(8, (ai.chalk.protos.chalk.arrow.v1.Struct) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 9) { output.writeMessage(9, (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 10) { output.writeEnum(10, ((java.lang.Integer) arrowTypeEnum_)); } if (arrowTypeEnumCase_ == 16) { output.writeEnum(16, ((java.lang.Integer) arrowTypeEnum_)); } if (arrowTypeEnumCase_ == 17) { output.writeMessage(17, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 18) { output.writeMessage(18, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 19) { output.writeMessage(19, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 20) { output.writeMessage(20, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 21) { output.writeMessage(21, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 22) { output.writeMessage(22, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 23) { output.writeMessage(23, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 24) { output.writeMessage(24, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 25) { output.writeMessage(25, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 26) { output.writeMessage(26, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 27) { output.writeMessage(27, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 28) { output.writeEnum(28, ((java.lang.Integer) arrowTypeEnum_)); } if (arrowTypeEnumCase_ == 29) { output.writeMessage(29, (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 30) { output.writeMessage(30, (ai.chalk.protos.chalk.arrow.v1.FixedSizeList) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 31) { output.writeMessage(31, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 32) { output.writeMessage(32, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 33) { output.writeInt32( 33, (int)((java.lang.Integer) arrowTypeEnum_)); } if (arrowTypeEnumCase_ == 34) { output.writeMessage(34, (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 35) { output.writeMessage(35, (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 36) { output.writeMessage(36, (ai.chalk.protos.chalk.arrow.v1.Map) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 37) { output.writeMessage(37, (ai.chalk.protos.chalk.arrow.v1.Extension) arrowTypeEnum_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (arrowTypeEnumCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (ai.chalk.protos.chalk.arrow.v1.Timestamp) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (ai.chalk.protos.chalk.arrow.v1.Struct) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, ((java.lang.Integer) arrowTypeEnum_)); } if (arrowTypeEnumCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(16, ((java.lang.Integer) arrowTypeEnum_)); } if (arrowTypeEnumCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 24) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 25) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 26) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 27) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 28) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(28, ((java.lang.Integer) arrowTypeEnum_)); } if (arrowTypeEnumCase_ == 29) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (ai.chalk.protos.chalk.arrow.v1.FixedSizeList) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 32) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 33) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 33, (int)((java.lang.Integer) arrowTypeEnum_)); } if (arrowTypeEnumCase_ == 34) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 35) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(35, (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 36) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(36, (ai.chalk.protos.chalk.arrow.v1.Map) arrowTypeEnum_); } if (arrowTypeEnumCase_ == 37) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(37, (ai.chalk.protos.chalk.arrow.v1.Extension) arrowTypeEnum_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.ArrowType)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.ArrowType other = (ai.chalk.protos.chalk.arrow.v1.ArrowType) obj; if (!getArrowTypeEnumCase().equals(other.getArrowTypeEnumCase())) return false; switch (arrowTypeEnumCase_) { case 1: if (!getNone() .equals(other.getNone())) return false; break; case 2: if (!getBool() .equals(other.getBool())) return false; break; case 3: if (!getFloat64() .equals(other.getFloat64())) return false; break; case 4: if (!getInt64() .equals(other.getInt64())) return false; break; case 5: if (!getLargeUtf8() .equals(other.getLargeUtf8())) return false; break; case 6: if (!getTimestamp() .equals(other.getTimestamp())) return false; break; case 7: if (!getDate64() .equals(other.getDate64())) return false; break; case 8: if (!getStruct() .equals(other.getStruct())) return false; break; case 9: if (!getLargeList() .equals(other.getLargeList())) return false; break; case 10: if (getTime64Value() != other.getTime64Value()) return false; break; case 16: if (getDurationValue() != other.getDurationValue()) return false; break; case 17: if (!getUtf8() .equals(other.getUtf8())) return false; break; case 18: if (!getInt8() .equals(other.getInt8())) return false; break; case 19: if (!getInt16() .equals(other.getInt16())) return false; break; case 20: if (!getInt32() .equals(other.getInt32())) return false; break; case 21: if (!getUint8() .equals(other.getUint8())) return false; break; case 22: if (!getUint16() .equals(other.getUint16())) return false; break; case 23: if (!getUint32() .equals(other.getUint32())) return false; break; case 24: if (!getUint64() .equals(other.getUint64())) return false; break; case 25: if (!getFloat16() .equals(other.getFloat16())) return false; break; case 26: if (!getFloat32() .equals(other.getFloat32())) return false; break; case 27: if (!getDate32() .equals(other.getDate32())) return false; break; case 28: if (getTime32Value() != other.getTime32Value()) return false; break; case 29: if (!getList() .equals(other.getList())) return false; break; case 30: if (!getFixedSizeList() .equals(other.getFixedSizeList())) return false; break; case 31: if (!getBinary() .equals(other.getBinary())) return false; break; case 32: if (!getLargeBinary() .equals(other.getLargeBinary())) return false; break; case 33: if (getFixedSizeBinary() != other.getFixedSizeBinary()) return false; break; case 34: if (!getDecimal128() .equals(other.getDecimal128())) return false; break; case 35: if (!getDecimal256() .equals(other.getDecimal256())) return false; break; case 36: if (!getMap() .equals(other.getMap())) return false; break; case 37: if (!getExtension() .equals(other.getExtension())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (arrowTypeEnumCase_) { case 1: hash = (37 * hash) + NONE_FIELD_NUMBER; hash = (53 * hash) + getNone().hashCode(); break; case 2: hash = (37 * hash) + BOOL_FIELD_NUMBER; hash = (53 * hash) + getBool().hashCode(); break; case 3: hash = (37 * hash) + FLOAT64_FIELD_NUMBER; hash = (53 * hash) + getFloat64().hashCode(); break; case 4: hash = (37 * hash) + INT64_FIELD_NUMBER; hash = (53 * hash) + getInt64().hashCode(); break; case 5: hash = (37 * hash) + LARGE_UTF8_FIELD_NUMBER; hash = (53 * hash) + getLargeUtf8().hashCode(); break; case 6: hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); break; case 7: hash = (37 * hash) + DATE64_FIELD_NUMBER; hash = (53 * hash) + getDate64().hashCode(); break; case 8: hash = (37 * hash) + STRUCT_FIELD_NUMBER; hash = (53 * hash) + getStruct().hashCode(); break; case 9: hash = (37 * hash) + LARGE_LIST_FIELD_NUMBER; hash = (53 * hash) + getLargeList().hashCode(); break; case 10: hash = (37 * hash) + TIME64_FIELD_NUMBER; hash = (53 * hash) + getTime64Value(); break; case 16: hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDurationValue(); break; case 17: hash = (37 * hash) + UTF8_FIELD_NUMBER; hash = (53 * hash) + getUtf8().hashCode(); break; case 18: hash = (37 * hash) + INT8_FIELD_NUMBER; hash = (53 * hash) + getInt8().hashCode(); break; case 19: hash = (37 * hash) + INT16_FIELD_NUMBER; hash = (53 * hash) + getInt16().hashCode(); break; case 20: hash = (37 * hash) + INT32_FIELD_NUMBER; hash = (53 * hash) + getInt32().hashCode(); break; case 21: hash = (37 * hash) + UINT8_FIELD_NUMBER; hash = (53 * hash) + getUint8().hashCode(); break; case 22: hash = (37 * hash) + UINT16_FIELD_NUMBER; hash = (53 * hash) + getUint16().hashCode(); break; case 23: hash = (37 * hash) + UINT32_FIELD_NUMBER; hash = (53 * hash) + getUint32().hashCode(); break; case 24: hash = (37 * hash) + UINT64_FIELD_NUMBER; hash = (53 * hash) + getUint64().hashCode(); break; case 25: hash = (37 * hash) + FLOAT16_FIELD_NUMBER; hash = (53 * hash) + getFloat16().hashCode(); break; case 26: hash = (37 * hash) + FLOAT32_FIELD_NUMBER; hash = (53 * hash) + getFloat32().hashCode(); break; case 27: hash = (37 * hash) + DATE32_FIELD_NUMBER; hash = (53 * hash) + getDate32().hashCode(); break; case 28: hash = (37 * hash) + TIME32_FIELD_NUMBER; hash = (53 * hash) + getTime32Value(); break; case 29: hash = (37 * hash) + LIST_FIELD_NUMBER; hash = (53 * hash) + getList().hashCode(); break; case 30: hash = (37 * hash) + FIXED_SIZE_LIST_FIELD_NUMBER; hash = (53 * hash) + getFixedSizeList().hashCode(); break; case 31: hash = (37 * hash) + BINARY_FIELD_NUMBER; hash = (53 * hash) + getBinary().hashCode(); break; case 32: hash = (37 * hash) + LARGE_BINARY_FIELD_NUMBER; hash = (53 * hash) + getLargeBinary().hashCode(); break; case 33: hash = (37 * hash) + FIXED_SIZE_BINARY_FIELD_NUMBER; hash = (53 * hash) + getFixedSizeBinary(); break; case 34: hash = (37 * hash) + DECIMAL_128_FIELD_NUMBER; hash = (53 * hash) + getDecimal128().hashCode(); break; case 35: hash = (37 * hash) + DECIMAL_256_FIELD_NUMBER; hash = (53 * hash) + getDecimal256().hashCode(); break; case 36: hash = (37 * hash) + MAP_FIELD_NUMBER; hash = (53 * hash) + getMap().hashCode(); break; case 37: hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtension().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.ArrowType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType 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 ai.chalk.protos.chalk.arrow.v1.ArrowType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType 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 ai.chalk.protos.chalk.arrow.v1.ArrowType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType 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(ai.chalk.protos.chalk.arrow.v1.ArrowType 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; } /** * Protobuf type {@code chalk.arrow.v1.ArrowType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.ArrowType) ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ArrowType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ArrowType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ArrowType.class, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.ArrowType.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (noneBuilder_ != null) { noneBuilder_.clear(); } if (boolBuilder_ != null) { boolBuilder_.clear(); } if (float64Builder_ != null) { float64Builder_.clear(); } if (int64Builder_ != null) { int64Builder_.clear(); } if (largeUtf8Builder_ != null) { largeUtf8Builder_.clear(); } if (timestampBuilder_ != null) { timestampBuilder_.clear(); } if (date64Builder_ != null) { date64Builder_.clear(); } if (structBuilder_ != null) { structBuilder_.clear(); } if (largeListBuilder_ != null) { largeListBuilder_.clear(); } if (utf8Builder_ != null) { utf8Builder_.clear(); } if (int8Builder_ != null) { int8Builder_.clear(); } if (int16Builder_ != null) { int16Builder_.clear(); } if (int32Builder_ != null) { int32Builder_.clear(); } if (uint8Builder_ != null) { uint8Builder_.clear(); } if (uint16Builder_ != null) { uint16Builder_.clear(); } if (uint32Builder_ != null) { uint32Builder_.clear(); } if (uint64Builder_ != null) { uint64Builder_.clear(); } if (float16Builder_ != null) { float16Builder_.clear(); } if (float32Builder_ != null) { float32Builder_.clear(); } if (date32Builder_ != null) { date32Builder_.clear(); } if (listBuilder_ != null) { listBuilder_.clear(); } if (fixedSizeListBuilder_ != null) { fixedSizeListBuilder_.clear(); } if (binaryBuilder_ != null) { binaryBuilder_.clear(); } if (largeBinaryBuilder_ != null) { largeBinaryBuilder_.clear(); } if (decimal128Builder_ != null) { decimal128Builder_.clear(); } if (decimal256Builder_ != null) { decimal256Builder_.clear(); } if (mapBuilder_ != null) { mapBuilder_.clear(); } if (extensionBuilder_ != null) { extensionBuilder_.clear(); } arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ArrowType_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType build() { ai.chalk.protos.chalk.arrow.v1.ArrowType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType buildPartial() { ai.chalk.protos.chalk.arrow.v1.ArrowType result = new ai.chalk.protos.chalk.arrow.v1.ArrowType(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.ArrowType result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.arrow.v1.ArrowType result) { result.arrowTypeEnumCase_ = arrowTypeEnumCase_; result.arrowTypeEnum_ = this.arrowTypeEnum_; if (arrowTypeEnumCase_ == 1 && noneBuilder_ != null) { result.arrowTypeEnum_ = noneBuilder_.build(); } if (arrowTypeEnumCase_ == 2 && boolBuilder_ != null) { result.arrowTypeEnum_ = boolBuilder_.build(); } if (arrowTypeEnumCase_ == 3 && float64Builder_ != null) { result.arrowTypeEnum_ = float64Builder_.build(); } if (arrowTypeEnumCase_ == 4 && int64Builder_ != null) { result.arrowTypeEnum_ = int64Builder_.build(); } if (arrowTypeEnumCase_ == 5 && largeUtf8Builder_ != null) { result.arrowTypeEnum_ = largeUtf8Builder_.build(); } if (arrowTypeEnumCase_ == 6 && timestampBuilder_ != null) { result.arrowTypeEnum_ = timestampBuilder_.build(); } if (arrowTypeEnumCase_ == 7 && date64Builder_ != null) { result.arrowTypeEnum_ = date64Builder_.build(); } if (arrowTypeEnumCase_ == 8 && structBuilder_ != null) { result.arrowTypeEnum_ = structBuilder_.build(); } if (arrowTypeEnumCase_ == 9 && largeListBuilder_ != null) { result.arrowTypeEnum_ = largeListBuilder_.build(); } if (arrowTypeEnumCase_ == 17 && utf8Builder_ != null) { result.arrowTypeEnum_ = utf8Builder_.build(); } if (arrowTypeEnumCase_ == 18 && int8Builder_ != null) { result.arrowTypeEnum_ = int8Builder_.build(); } if (arrowTypeEnumCase_ == 19 && int16Builder_ != null) { result.arrowTypeEnum_ = int16Builder_.build(); } if (arrowTypeEnumCase_ == 20 && int32Builder_ != null) { result.arrowTypeEnum_ = int32Builder_.build(); } if (arrowTypeEnumCase_ == 21 && uint8Builder_ != null) { result.arrowTypeEnum_ = uint8Builder_.build(); } if (arrowTypeEnumCase_ == 22 && uint16Builder_ != null) { result.arrowTypeEnum_ = uint16Builder_.build(); } if (arrowTypeEnumCase_ == 23 && uint32Builder_ != null) { result.arrowTypeEnum_ = uint32Builder_.build(); } if (arrowTypeEnumCase_ == 24 && uint64Builder_ != null) { result.arrowTypeEnum_ = uint64Builder_.build(); } if (arrowTypeEnumCase_ == 25 && float16Builder_ != null) { result.arrowTypeEnum_ = float16Builder_.build(); } if (arrowTypeEnumCase_ == 26 && float32Builder_ != null) { result.arrowTypeEnum_ = float32Builder_.build(); } if (arrowTypeEnumCase_ == 27 && date32Builder_ != null) { result.arrowTypeEnum_ = date32Builder_.build(); } if (arrowTypeEnumCase_ == 29 && listBuilder_ != null) { result.arrowTypeEnum_ = listBuilder_.build(); } if (arrowTypeEnumCase_ == 30 && fixedSizeListBuilder_ != null) { result.arrowTypeEnum_ = fixedSizeListBuilder_.build(); } if (arrowTypeEnumCase_ == 31 && binaryBuilder_ != null) { result.arrowTypeEnum_ = binaryBuilder_.build(); } if (arrowTypeEnumCase_ == 32 && largeBinaryBuilder_ != null) { result.arrowTypeEnum_ = largeBinaryBuilder_.build(); } if (arrowTypeEnumCase_ == 34 && decimal128Builder_ != null) { result.arrowTypeEnum_ = decimal128Builder_.build(); } if (arrowTypeEnumCase_ == 35 && decimal256Builder_ != null) { result.arrowTypeEnum_ = decimal256Builder_.build(); } if (arrowTypeEnumCase_ == 36 && mapBuilder_ != null) { result.arrowTypeEnum_ = mapBuilder_.build(); } if (arrowTypeEnumCase_ == 37 && extensionBuilder_ != null) { result.arrowTypeEnum_ = extensionBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.ArrowType) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.ArrowType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.ArrowType other) { if (other == ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) return this; switch (other.getArrowTypeEnumCase()) { case NONE: { mergeNone(other.getNone()); break; } case BOOL: { mergeBool(other.getBool()); break; } case FLOAT64: { mergeFloat64(other.getFloat64()); break; } case INT64: { mergeInt64(other.getInt64()); break; } case LARGE_UTF8: { mergeLargeUtf8(other.getLargeUtf8()); break; } case TIMESTAMP: { mergeTimestamp(other.getTimestamp()); break; } case DATE64: { mergeDate64(other.getDate64()); break; } case STRUCT: { mergeStruct(other.getStruct()); break; } case LARGE_LIST: { mergeLargeList(other.getLargeList()); break; } case TIME64: { setTime64Value(other.getTime64Value()); break; } case DURATION: { setDurationValue(other.getDurationValue()); break; } case UTF8: { mergeUtf8(other.getUtf8()); break; } case INT8: { mergeInt8(other.getInt8()); break; } case INT16: { mergeInt16(other.getInt16()); break; } case INT32: { mergeInt32(other.getInt32()); break; } case UINT8: { mergeUint8(other.getUint8()); break; } case UINT16: { mergeUint16(other.getUint16()); break; } case UINT32: { mergeUint32(other.getUint32()); break; } case UINT64: { mergeUint64(other.getUint64()); break; } case FLOAT16: { mergeFloat16(other.getFloat16()); break; } case FLOAT32: { mergeFloat32(other.getFloat32()); break; } case DATE32: { mergeDate32(other.getDate32()); break; } case TIME32: { setTime32Value(other.getTime32Value()); break; } case LIST: { mergeList(other.getList()); break; } case FIXED_SIZE_LIST: { mergeFixedSizeList(other.getFixedSizeList()); break; } case BINARY: { mergeBinary(other.getBinary()); break; } case LARGE_BINARY: { mergeLargeBinary(other.getLargeBinary()); break; } case FIXED_SIZE_BINARY: { setFixedSizeBinary(other.getFixedSizeBinary()); break; } case DECIMAL_128: { mergeDecimal128(other.getDecimal128()); break; } case DECIMAL_256: { mergeDecimal256(other.getDecimal256()); break; } case MAP: { mergeMap(other.getMap()); break; } case EXTENSION: { mergeExtension(other.getExtension()); break; } case ARROWTYPEENUM_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNoneFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 1; break; } // case 10 case 18: { input.readMessage( getBoolFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 2; break; } // case 18 case 26: { input.readMessage( getFloat64FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 3; break; } // case 26 case 34: { input.readMessage( getInt64FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 4; break; } // case 34 case 42: { input.readMessage( getLargeUtf8FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 5; break; } // case 42 case 50: { input.readMessage( getTimestampFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 6; break; } // case 50 case 58: { input.readMessage( getDate64FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 7; break; } // case 58 case 66: { input.readMessage( getStructFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 8; break; } // case 66 case 74: { input.readMessage( getLargeListFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 9; break; } // case 74 case 80: { int rawValue = input.readEnum(); arrowTypeEnumCase_ = 10; arrowTypeEnum_ = rawValue; break; } // case 80 case 128: { int rawValue = input.readEnum(); arrowTypeEnumCase_ = 16; arrowTypeEnum_ = rawValue; break; } // case 128 case 138: { input.readMessage( getUtf8FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 17; break; } // case 138 case 146: { input.readMessage( getInt8FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 18; break; } // case 146 case 154: { input.readMessage( getInt16FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 19; break; } // case 154 case 162: { input.readMessage( getInt32FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 20; break; } // case 162 case 170: { input.readMessage( getUint8FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 21; break; } // case 170 case 178: { input.readMessage( getUint16FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 22; break; } // case 178 case 186: { input.readMessage( getUint32FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 23; break; } // case 186 case 194: { input.readMessage( getUint64FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 24; break; } // case 194 case 202: { input.readMessage( getFloat16FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 25; break; } // case 202 case 210: { input.readMessage( getFloat32FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 26; break; } // case 210 case 218: { input.readMessage( getDate32FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 27; break; } // case 218 case 224: { int rawValue = input.readEnum(); arrowTypeEnumCase_ = 28; arrowTypeEnum_ = rawValue; break; } // case 224 case 234: { input.readMessage( getListFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 29; break; } // case 234 case 242: { input.readMessage( getFixedSizeListFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 30; break; } // case 242 case 250: { input.readMessage( getBinaryFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 31; break; } // case 250 case 258: { input.readMessage( getLargeBinaryFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 32; break; } // case 258 case 264: { arrowTypeEnum_ = input.readInt32(); arrowTypeEnumCase_ = 33; break; } // case 264 case 274: { input.readMessage( getDecimal128FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 34; break; } // case 274 case 282: { input.readMessage( getDecimal256FieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 35; break; } // case 282 case 290: { input.readMessage( getMapFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 36; break; } // case 290 case 298: { input.readMessage( getExtensionFieldBuilder().getBuilder(), extensionRegistry); arrowTypeEnumCase_ = 37; break; } // case 298 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int arrowTypeEnumCase_ = 0; private java.lang.Object arrowTypeEnum_; public ArrowTypeEnumCase getArrowTypeEnumCase() { return ArrowTypeEnumCase.forNumber( arrowTypeEnumCase_); } public Builder clearArrowTypeEnum() { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> noneBuilder_; /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> * @return Whether the none field is set. */ @java.lang.Override public boolean hasNone() { return arrowTypeEnumCase_ == 1; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> * @return The none. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getNone() { if (noneBuilder_ == null) { if (arrowTypeEnumCase_ == 1) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 1) { return noneBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> */ public Builder setNone(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (noneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { noneBuilder_.setMessage(value); } arrowTypeEnumCase_ = 1; return this; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> */ public Builder setNone( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (noneBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { noneBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 1; return this; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> */ public Builder mergeNone(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (noneBuilder_ == null) { if (arrowTypeEnumCase_ == 1 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 1) { noneBuilder_.mergeFrom(value); } else { noneBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 1; return this; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> */ public Builder clearNone() { if (noneBuilder_ == null) { if (arrowTypeEnumCase_ == 1) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 1) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } noneBuilder_.clear(); } return this; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getNoneBuilder() { return getNoneFieldBuilder().getBuilder(); } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getNoneOrBuilder() { if ((arrowTypeEnumCase_ == 1) && (noneBuilder_ != null)) { return noneBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 1) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getNoneFieldBuilder() { if (noneBuilder_ == null) { if (!(arrowTypeEnumCase_ == 1)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } noneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 1; onChanged(); return noneBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> boolBuilder_; /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> * @return Whether the bool field is set. */ @java.lang.Override public boolean hasBool() { return arrowTypeEnumCase_ == 2; } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> * @return The bool. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getBool() { if (boolBuilder_ == null) { if (arrowTypeEnumCase_ == 2) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 2) { return boolBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> */ public Builder setBool(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (boolBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { boolBuilder_.setMessage(value); } arrowTypeEnumCase_ = 2; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> */ public Builder setBool( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (boolBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { boolBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 2; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> */ public Builder mergeBool(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (boolBuilder_ == null) { if (arrowTypeEnumCase_ == 2 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 2) { boolBuilder_.mergeFrom(value); } else { boolBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 2; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> */ public Builder clearBool() { if (boolBuilder_ == null) { if (arrowTypeEnumCase_ == 2) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 2) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } boolBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getBoolBuilder() { return getBoolFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getBoolOrBuilder() { if ((arrowTypeEnumCase_ == 2) && (boolBuilder_ != null)) { return boolBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 2) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getBoolFieldBuilder() { if (boolBuilder_ == null) { if (!(arrowTypeEnumCase_ == 2)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } boolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 2; onChanged(); return boolBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> float64Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> * @return Whether the float64 field is set. */ @java.lang.Override public boolean hasFloat64() { return arrowTypeEnumCase_ == 3; } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> * @return The float64. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getFloat64() { if (float64Builder_ == null) { if (arrowTypeEnumCase_ == 3) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 3) { return float64Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> */ public Builder setFloat64(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (float64Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { float64Builder_.setMessage(value); } arrowTypeEnumCase_ = 3; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> */ public Builder setFloat64( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (float64Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { float64Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 3; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> */ public Builder mergeFloat64(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (float64Builder_ == null) { if (arrowTypeEnumCase_ == 3 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 3) { float64Builder_.mergeFrom(value); } else { float64Builder_.setMessage(value); } } arrowTypeEnumCase_ = 3; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> */ public Builder clearFloat64() { if (float64Builder_ == null) { if (arrowTypeEnumCase_ == 3) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 3) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } float64Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getFloat64Builder() { return getFloat64FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getFloat64OrBuilder() { if ((arrowTypeEnumCase_ == 3) && (float64Builder_ != null)) { return float64Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 3) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getFloat64FieldBuilder() { if (float64Builder_ == null) { if (!(arrowTypeEnumCase_ == 3)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } float64Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 3; onChanged(); return float64Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> int64Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> * @return Whether the int64 field is set. */ @java.lang.Override public boolean hasInt64() { return arrowTypeEnumCase_ == 4; } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> * @return The int64. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt64() { if (int64Builder_ == null) { if (arrowTypeEnumCase_ == 4) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 4) { return int64Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> */ public Builder setInt64(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (int64Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { int64Builder_.setMessage(value); } arrowTypeEnumCase_ = 4; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> */ public Builder setInt64( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (int64Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { int64Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 4; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> */ public Builder mergeInt64(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (int64Builder_ == null) { if (arrowTypeEnumCase_ == 4 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 4) { int64Builder_.mergeFrom(value); } else { int64Builder_.setMessage(value); } } arrowTypeEnumCase_ = 4; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> */ public Builder clearInt64() { if (int64Builder_ == null) { if (arrowTypeEnumCase_ == 4) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 4) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } int64Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getInt64Builder() { return getInt64FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt64OrBuilder() { if ((arrowTypeEnumCase_ == 4) && (int64Builder_ != null)) { return int64Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 4) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getInt64FieldBuilder() { if (int64Builder_ == null) { if (!(arrowTypeEnumCase_ == 4)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } int64Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 4; onChanged(); return int64Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> largeUtf8Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> * @return Whether the largeUtf8 field is set. */ @java.lang.Override public boolean hasLargeUtf8() { return arrowTypeEnumCase_ == 5; } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> * @return The largeUtf8. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getLargeUtf8() { if (largeUtf8Builder_ == null) { if (arrowTypeEnumCase_ == 5) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 5) { return largeUtf8Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> */ public Builder setLargeUtf8(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (largeUtf8Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { largeUtf8Builder_.setMessage(value); } arrowTypeEnumCase_ = 5; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> */ public Builder setLargeUtf8( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (largeUtf8Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { largeUtf8Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 5; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> */ public Builder mergeLargeUtf8(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (largeUtf8Builder_ == null) { if (arrowTypeEnumCase_ == 5 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 5) { largeUtf8Builder_.mergeFrom(value); } else { largeUtf8Builder_.setMessage(value); } } arrowTypeEnumCase_ = 5; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> */ public Builder clearLargeUtf8() { if (largeUtf8Builder_ == null) { if (arrowTypeEnumCase_ == 5) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 5) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } largeUtf8Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getLargeUtf8Builder() { return getLargeUtf8FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getLargeUtf8OrBuilder() { if ((arrowTypeEnumCase_ == 5) && (largeUtf8Builder_ != null)) { return largeUtf8Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 5) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getLargeUtf8FieldBuilder() { if (largeUtf8Builder_ == null) { if (!(arrowTypeEnumCase_ == 5)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } largeUtf8Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 5; onChanged(); return largeUtf8Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Timestamp, ai.chalk.protos.chalk.arrow.v1.Timestamp.Builder, ai.chalk.protos.chalk.arrow.v1.TimestampOrBuilder> timestampBuilder_; /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return arrowTypeEnumCase_ == 6; } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> * @return The timestamp. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Timestamp getTimestamp() { if (timestampBuilder_ == null) { if (arrowTypeEnumCase_ == 6) { return (ai.chalk.protos.chalk.arrow.v1.Timestamp) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Timestamp.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 6) { return timestampBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.Timestamp.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> */ public Builder setTimestamp(ai.chalk.protos.chalk.arrow.v1.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } arrowTypeEnumCase_ = 6; return this; } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> */ public Builder setTimestamp( ai.chalk.protos.chalk.arrow.v1.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 6; return this; } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> */ public Builder mergeTimestamp(ai.chalk.protos.chalk.arrow.v1.Timestamp value) { if (timestampBuilder_ == null) { if (arrowTypeEnumCase_ == 6 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.Timestamp.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Timestamp.newBuilder((ai.chalk.protos.chalk.arrow.v1.Timestamp) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 6) { timestampBuilder_.mergeFrom(value); } else { timestampBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 6; return this; } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { if (arrowTypeEnumCase_ == 6) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 6) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } timestampBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Timestamp.Builder getTimestampBuilder() { return getTimestampFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.TimestampOrBuilder getTimestampOrBuilder() { if ((arrowTypeEnumCase_ == 6) && (timestampBuilder_ != null)) { return timestampBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 6) { return (ai.chalk.protos.chalk.arrow.v1.Timestamp) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Timestamp.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Timestamp, ai.chalk.protos.chalk.arrow.v1.Timestamp.Builder, ai.chalk.protos.chalk.arrow.v1.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { if (!(arrowTypeEnumCase_ == 6)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Timestamp.getDefaultInstance(); } timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Timestamp, ai.chalk.protos.chalk.arrow.v1.Timestamp.Builder, ai.chalk.protos.chalk.arrow.v1.TimestampOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.Timestamp) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 6; onChanged(); return timestampBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> date64Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> * @return Whether the date64 field is set. */ @java.lang.Override public boolean hasDate64() { return arrowTypeEnumCase_ == 7; } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> * @return The date64. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getDate64() { if (date64Builder_ == null) { if (arrowTypeEnumCase_ == 7) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 7) { return date64Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> */ public Builder setDate64(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (date64Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { date64Builder_.setMessage(value); } arrowTypeEnumCase_ = 7; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> */ public Builder setDate64( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (date64Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { date64Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 7; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> */ public Builder mergeDate64(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (date64Builder_ == null) { if (arrowTypeEnumCase_ == 7 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 7) { date64Builder_.mergeFrom(value); } else { date64Builder_.setMessage(value); } } arrowTypeEnumCase_ = 7; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> */ public Builder clearDate64() { if (date64Builder_ == null) { if (arrowTypeEnumCase_ == 7) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 7) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } date64Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getDate64Builder() { return getDate64FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getDate64OrBuilder() { if ((arrowTypeEnumCase_ == 7) && (date64Builder_ != null)) { return date64Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 7) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getDate64FieldBuilder() { if (date64Builder_ == null) { if (!(arrowTypeEnumCase_ == 7)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } date64Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 7; onChanged(); return date64Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Struct, ai.chalk.protos.chalk.arrow.v1.Struct.Builder, ai.chalk.protos.chalk.arrow.v1.StructOrBuilder> structBuilder_; /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> * @return Whether the struct field is set. */ @java.lang.Override public boolean hasStruct() { return arrowTypeEnumCase_ == 8; } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> * @return The struct. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Struct getStruct() { if (structBuilder_ == null) { if (arrowTypeEnumCase_ == 8) { return (ai.chalk.protos.chalk.arrow.v1.Struct) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Struct.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 8) { return structBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.Struct.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> */ public Builder setStruct(ai.chalk.protos.chalk.arrow.v1.Struct value) { if (structBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { structBuilder_.setMessage(value); } arrowTypeEnumCase_ = 8; return this; } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> */ public Builder setStruct( ai.chalk.protos.chalk.arrow.v1.Struct.Builder builderForValue) { if (structBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { structBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 8; return this; } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> */ public Builder mergeStruct(ai.chalk.protos.chalk.arrow.v1.Struct value) { if (structBuilder_ == null) { if (arrowTypeEnumCase_ == 8 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.Struct.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Struct.newBuilder((ai.chalk.protos.chalk.arrow.v1.Struct) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 8) { structBuilder_.mergeFrom(value); } else { structBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 8; return this; } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> */ public Builder clearStruct() { if (structBuilder_ == null) { if (arrowTypeEnumCase_ == 8) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 8) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } structBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Struct.Builder getStructBuilder() { return getStructFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructOrBuilder getStructOrBuilder() { if ((arrowTypeEnumCase_ == 8) && (structBuilder_ != null)) { return structBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 8) { return (ai.chalk.protos.chalk.arrow.v1.Struct) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Struct.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Struct, ai.chalk.protos.chalk.arrow.v1.Struct.Builder, ai.chalk.protos.chalk.arrow.v1.StructOrBuilder> getStructFieldBuilder() { if (structBuilder_ == null) { if (!(arrowTypeEnumCase_ == 8)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Struct.getDefaultInstance(); } structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Struct, ai.chalk.protos.chalk.arrow.v1.Struct.Builder, ai.chalk.protos.chalk.arrow.v1.StructOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.Struct) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 8; onChanged(); return structBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.List, ai.chalk.protos.chalk.arrow.v1.List.Builder, ai.chalk.protos.chalk.arrow.v1.ListOrBuilder> largeListBuilder_; /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> * @return Whether the largeList field is set. */ @java.lang.Override public boolean hasLargeList() { return arrowTypeEnumCase_ == 9; } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> * @return The largeList. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.List getLargeList() { if (largeListBuilder_ == null) { if (arrowTypeEnumCase_ == 9) { return (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 9) { return largeListBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> */ public Builder setLargeList(ai.chalk.protos.chalk.arrow.v1.List value) { if (largeListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { largeListBuilder_.setMessage(value); } arrowTypeEnumCase_ = 9; return this; } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> */ public Builder setLargeList( ai.chalk.protos.chalk.arrow.v1.List.Builder builderForValue) { if (largeListBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { largeListBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 9; return this; } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> */ public Builder mergeLargeList(ai.chalk.protos.chalk.arrow.v1.List value) { if (largeListBuilder_ == null) { if (arrowTypeEnumCase_ == 9 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.List.newBuilder((ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 9) { largeListBuilder_.mergeFrom(value); } else { largeListBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 9; return this; } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> */ public Builder clearLargeList() { if (largeListBuilder_ == null) { if (arrowTypeEnumCase_ == 9) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 9) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } largeListBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> */ public ai.chalk.protos.chalk.arrow.v1.List.Builder getLargeListBuilder() { return getLargeListFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ListOrBuilder getLargeListOrBuilder() { if ((arrowTypeEnumCase_ == 9) && (largeListBuilder_ != null)) { return largeListBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 9) { return (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.List, ai.chalk.protos.chalk.arrow.v1.List.Builder, ai.chalk.protos.chalk.arrow.v1.ListOrBuilder> getLargeListFieldBuilder() { if (largeListBuilder_ == null) { if (!(arrowTypeEnumCase_ == 9)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } largeListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.List, ai.chalk.protos.chalk.arrow.v1.List.Builder, ai.chalk.protos.chalk.arrow.v1.ListOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 9; onChanged(); return largeListBuilder_; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return Whether the time64 field is set. */ @java.lang.Override public boolean hasTime64() { return arrowTypeEnumCase_ == 10; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return The enum numeric value on the wire for time64. */ @java.lang.Override public int getTime64Value() { if (arrowTypeEnumCase_ == 10) { return ((java.lang.Integer) arrowTypeEnum_).intValue(); } return 0; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @param value The enum numeric value on the wire for time64 to set. * @return This builder for chaining. */ public Builder setTime64Value(int value) { arrowTypeEnumCase_ = 10; arrowTypeEnum_ = value; onChanged(); return this; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return The time64. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.TimeUnit getTime64() { if (arrowTypeEnumCase_ == 10) { ai.chalk.protos.chalk.arrow.v1.TimeUnit result = ai.chalk.protos.chalk.arrow.v1.TimeUnit.forNumber( (java.lang.Integer) arrowTypeEnum_); return result == null ? ai.chalk.protos.chalk.arrow.v1.TimeUnit.UNRECOGNIZED : result; } return ai.chalk.protos.chalk.arrow.v1.TimeUnit.TIME_UNIT_UNSPECIFIED; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @param value The time64 to set. * @return This builder for chaining. */ public Builder setTime64(ai.chalk.protos.chalk.arrow.v1.TimeUnit value) { if (value == null) { throw new NullPointerException(); } arrowTypeEnumCase_ = 10; arrowTypeEnum_ = value.getNumber(); onChanged(); return this; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return This builder for chaining. */ public Builder clearTime64() { if (arrowTypeEnumCase_ == 10) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return arrowTypeEnumCase_ == 16; } /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return The enum numeric value on the wire for duration. */ @java.lang.Override public int getDurationValue() { if (arrowTypeEnumCase_ == 16) { return ((java.lang.Integer) arrowTypeEnum_).intValue(); } return 0; } /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @param value The enum numeric value on the wire for duration to set. * @return This builder for chaining. */ public Builder setDurationValue(int value) { arrowTypeEnumCase_ = 16; arrowTypeEnum_ = value; onChanged(); return this; } /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return The duration. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.TimeUnit getDuration() { if (arrowTypeEnumCase_ == 16) { ai.chalk.protos.chalk.arrow.v1.TimeUnit result = ai.chalk.protos.chalk.arrow.v1.TimeUnit.forNumber( (java.lang.Integer) arrowTypeEnum_); return result == null ? ai.chalk.protos.chalk.arrow.v1.TimeUnit.UNRECOGNIZED : result; } return ai.chalk.protos.chalk.arrow.v1.TimeUnit.TIME_UNIT_UNSPECIFIED; } /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @param value The duration to set. * @return This builder for chaining. */ public Builder setDuration(ai.chalk.protos.chalk.arrow.v1.TimeUnit value) { if (value == null) { throw new NullPointerException(); } arrowTypeEnumCase_ = 16; arrowTypeEnum_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return This builder for chaining. */ public Builder clearDuration() { if (arrowTypeEnumCase_ == 16) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> utf8Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> * @return Whether the utf8 field is set. */ @java.lang.Override public boolean hasUtf8() { return arrowTypeEnumCase_ == 17; } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> * @return The utf8. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUtf8() { if (utf8Builder_ == null) { if (arrowTypeEnumCase_ == 17) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 17) { return utf8Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> */ public Builder setUtf8(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (utf8Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { utf8Builder_.setMessage(value); } arrowTypeEnumCase_ = 17; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> */ public Builder setUtf8( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (utf8Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { utf8Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 17; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> */ public Builder mergeUtf8(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (utf8Builder_ == null) { if (arrowTypeEnumCase_ == 17 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 17) { utf8Builder_.mergeFrom(value); } else { utf8Builder_.setMessage(value); } } arrowTypeEnumCase_ = 17; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> */ public Builder clearUtf8() { if (utf8Builder_ == null) { if (arrowTypeEnumCase_ == 17) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 17) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } utf8Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getUtf8Builder() { return getUtf8FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUtf8OrBuilder() { if ((arrowTypeEnumCase_ == 17) && (utf8Builder_ != null)) { return utf8Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 17) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getUtf8FieldBuilder() { if (utf8Builder_ == null) { if (!(arrowTypeEnumCase_ == 17)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } utf8Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 17; onChanged(); return utf8Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> int8Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> * @return Whether the int8 field is set. */ @java.lang.Override public boolean hasInt8() { return arrowTypeEnumCase_ == 18; } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> * @return The int8. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt8() { if (int8Builder_ == null) { if (arrowTypeEnumCase_ == 18) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 18) { return int8Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> */ public Builder setInt8(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (int8Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { int8Builder_.setMessage(value); } arrowTypeEnumCase_ = 18; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> */ public Builder setInt8( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (int8Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { int8Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 18; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> */ public Builder mergeInt8(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (int8Builder_ == null) { if (arrowTypeEnumCase_ == 18 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 18) { int8Builder_.mergeFrom(value); } else { int8Builder_.setMessage(value); } } arrowTypeEnumCase_ = 18; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> */ public Builder clearInt8() { if (int8Builder_ == null) { if (arrowTypeEnumCase_ == 18) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 18) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } int8Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getInt8Builder() { return getInt8FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt8OrBuilder() { if ((arrowTypeEnumCase_ == 18) && (int8Builder_ != null)) { return int8Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 18) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getInt8FieldBuilder() { if (int8Builder_ == null) { if (!(arrowTypeEnumCase_ == 18)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } int8Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 18; onChanged(); return int8Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> int16Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> * @return Whether the int16 field is set. */ @java.lang.Override public boolean hasInt16() { return arrowTypeEnumCase_ == 19; } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> * @return The int16. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt16() { if (int16Builder_ == null) { if (arrowTypeEnumCase_ == 19) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 19) { return int16Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> */ public Builder setInt16(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (int16Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { int16Builder_.setMessage(value); } arrowTypeEnumCase_ = 19; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> */ public Builder setInt16( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (int16Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { int16Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 19; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> */ public Builder mergeInt16(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (int16Builder_ == null) { if (arrowTypeEnumCase_ == 19 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 19) { int16Builder_.mergeFrom(value); } else { int16Builder_.setMessage(value); } } arrowTypeEnumCase_ = 19; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> */ public Builder clearInt16() { if (int16Builder_ == null) { if (arrowTypeEnumCase_ == 19) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 19) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } int16Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getInt16Builder() { return getInt16FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt16OrBuilder() { if ((arrowTypeEnumCase_ == 19) && (int16Builder_ != null)) { return int16Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 19) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getInt16FieldBuilder() { if (int16Builder_ == null) { if (!(arrowTypeEnumCase_ == 19)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } int16Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 19; onChanged(); return int16Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> int32Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> * @return Whether the int32 field is set. */ @java.lang.Override public boolean hasInt32() { return arrowTypeEnumCase_ == 20; } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> * @return The int32. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt32() { if (int32Builder_ == null) { if (arrowTypeEnumCase_ == 20) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 20) { return int32Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> */ public Builder setInt32(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (int32Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { int32Builder_.setMessage(value); } arrowTypeEnumCase_ = 20; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> */ public Builder setInt32( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (int32Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { int32Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 20; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> */ public Builder mergeInt32(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (int32Builder_ == null) { if (arrowTypeEnumCase_ == 20 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 20) { int32Builder_.mergeFrom(value); } else { int32Builder_.setMessage(value); } } arrowTypeEnumCase_ = 20; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> */ public Builder clearInt32() { if (int32Builder_ == null) { if (arrowTypeEnumCase_ == 20) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 20) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } int32Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getInt32Builder() { return getInt32FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt32OrBuilder() { if ((arrowTypeEnumCase_ == 20) && (int32Builder_ != null)) { return int32Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 20) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getInt32FieldBuilder() { if (int32Builder_ == null) { if (!(arrowTypeEnumCase_ == 20)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } int32Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 20; onChanged(); return int32Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> uint8Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> * @return Whether the uint8 field is set. */ @java.lang.Override public boolean hasUint8() { return arrowTypeEnumCase_ == 21; } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> * @return The uint8. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint8() { if (uint8Builder_ == null) { if (arrowTypeEnumCase_ == 21) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 21) { return uint8Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> */ public Builder setUint8(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (uint8Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { uint8Builder_.setMessage(value); } arrowTypeEnumCase_ = 21; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> */ public Builder setUint8( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (uint8Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { uint8Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 21; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> */ public Builder mergeUint8(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (uint8Builder_ == null) { if (arrowTypeEnumCase_ == 21 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 21) { uint8Builder_.mergeFrom(value); } else { uint8Builder_.setMessage(value); } } arrowTypeEnumCase_ = 21; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> */ public Builder clearUint8() { if (uint8Builder_ == null) { if (arrowTypeEnumCase_ == 21) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 21) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } uint8Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getUint8Builder() { return getUint8FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint8OrBuilder() { if ((arrowTypeEnumCase_ == 21) && (uint8Builder_ != null)) { return uint8Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 21) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getUint8FieldBuilder() { if (uint8Builder_ == null) { if (!(arrowTypeEnumCase_ == 21)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } uint8Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 21; onChanged(); return uint8Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> uint16Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> * @return Whether the uint16 field is set. */ @java.lang.Override public boolean hasUint16() { return arrowTypeEnumCase_ == 22; } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> * @return The uint16. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint16() { if (uint16Builder_ == null) { if (arrowTypeEnumCase_ == 22) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 22) { return uint16Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> */ public Builder setUint16(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (uint16Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { uint16Builder_.setMessage(value); } arrowTypeEnumCase_ = 22; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> */ public Builder setUint16( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (uint16Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { uint16Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 22; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> */ public Builder mergeUint16(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (uint16Builder_ == null) { if (arrowTypeEnumCase_ == 22 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 22) { uint16Builder_.mergeFrom(value); } else { uint16Builder_.setMessage(value); } } arrowTypeEnumCase_ = 22; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> */ public Builder clearUint16() { if (uint16Builder_ == null) { if (arrowTypeEnumCase_ == 22) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 22) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } uint16Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getUint16Builder() { return getUint16FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint16OrBuilder() { if ((arrowTypeEnumCase_ == 22) && (uint16Builder_ != null)) { return uint16Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 22) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getUint16FieldBuilder() { if (uint16Builder_ == null) { if (!(arrowTypeEnumCase_ == 22)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } uint16Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 22; onChanged(); return uint16Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> uint32Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> * @return Whether the uint32 field is set. */ @java.lang.Override public boolean hasUint32() { return arrowTypeEnumCase_ == 23; } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> * @return The uint32. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint32() { if (uint32Builder_ == null) { if (arrowTypeEnumCase_ == 23) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 23) { return uint32Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> */ public Builder setUint32(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (uint32Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { uint32Builder_.setMessage(value); } arrowTypeEnumCase_ = 23; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> */ public Builder setUint32( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (uint32Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { uint32Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 23; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> */ public Builder mergeUint32(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (uint32Builder_ == null) { if (arrowTypeEnumCase_ == 23 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 23) { uint32Builder_.mergeFrom(value); } else { uint32Builder_.setMessage(value); } } arrowTypeEnumCase_ = 23; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> */ public Builder clearUint32() { if (uint32Builder_ == null) { if (arrowTypeEnumCase_ == 23) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 23) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } uint32Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getUint32Builder() { return getUint32FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint32OrBuilder() { if ((arrowTypeEnumCase_ == 23) && (uint32Builder_ != null)) { return uint32Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 23) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getUint32FieldBuilder() { if (uint32Builder_ == null) { if (!(arrowTypeEnumCase_ == 23)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } uint32Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 23; onChanged(); return uint32Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> uint64Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> * @return Whether the uint64 field is set. */ @java.lang.Override public boolean hasUint64() { return arrowTypeEnumCase_ == 24; } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> * @return The uint64. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint64() { if (uint64Builder_ == null) { if (arrowTypeEnumCase_ == 24) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 24) { return uint64Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> */ public Builder setUint64(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (uint64Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { uint64Builder_.setMessage(value); } arrowTypeEnumCase_ = 24; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> */ public Builder setUint64( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (uint64Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { uint64Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 24; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> */ public Builder mergeUint64(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (uint64Builder_ == null) { if (arrowTypeEnumCase_ == 24 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 24) { uint64Builder_.mergeFrom(value); } else { uint64Builder_.setMessage(value); } } arrowTypeEnumCase_ = 24; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> */ public Builder clearUint64() { if (uint64Builder_ == null) { if (arrowTypeEnumCase_ == 24) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 24) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } uint64Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getUint64Builder() { return getUint64FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint64OrBuilder() { if ((arrowTypeEnumCase_ == 24) && (uint64Builder_ != null)) { return uint64Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 24) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getUint64FieldBuilder() { if (uint64Builder_ == null) { if (!(arrowTypeEnumCase_ == 24)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } uint64Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 24; onChanged(); return uint64Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> float16Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> * @return Whether the float16 field is set. */ @java.lang.Override public boolean hasFloat16() { return arrowTypeEnumCase_ == 25; } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> * @return The float16. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getFloat16() { if (float16Builder_ == null) { if (arrowTypeEnumCase_ == 25) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 25) { return float16Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> */ public Builder setFloat16(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (float16Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { float16Builder_.setMessage(value); } arrowTypeEnumCase_ = 25; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> */ public Builder setFloat16( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (float16Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { float16Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 25; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> */ public Builder mergeFloat16(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (float16Builder_ == null) { if (arrowTypeEnumCase_ == 25 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 25) { float16Builder_.mergeFrom(value); } else { float16Builder_.setMessage(value); } } arrowTypeEnumCase_ = 25; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> */ public Builder clearFloat16() { if (float16Builder_ == null) { if (arrowTypeEnumCase_ == 25) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 25) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } float16Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getFloat16Builder() { return getFloat16FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getFloat16OrBuilder() { if ((arrowTypeEnumCase_ == 25) && (float16Builder_ != null)) { return float16Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 25) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getFloat16FieldBuilder() { if (float16Builder_ == null) { if (!(arrowTypeEnumCase_ == 25)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } float16Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 25; onChanged(); return float16Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> float32Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> * @return Whether the float32 field is set. */ @java.lang.Override public boolean hasFloat32() { return arrowTypeEnumCase_ == 26; } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> * @return The float32. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getFloat32() { if (float32Builder_ == null) { if (arrowTypeEnumCase_ == 26) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 26) { return float32Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> */ public Builder setFloat32(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (float32Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { float32Builder_.setMessage(value); } arrowTypeEnumCase_ = 26; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> */ public Builder setFloat32( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (float32Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { float32Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 26; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> */ public Builder mergeFloat32(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (float32Builder_ == null) { if (arrowTypeEnumCase_ == 26 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 26) { float32Builder_.mergeFrom(value); } else { float32Builder_.setMessage(value); } } arrowTypeEnumCase_ = 26; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> */ public Builder clearFloat32() { if (float32Builder_ == null) { if (arrowTypeEnumCase_ == 26) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 26) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } float32Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getFloat32Builder() { return getFloat32FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getFloat32OrBuilder() { if ((arrowTypeEnumCase_ == 26) && (float32Builder_ != null)) { return float32Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 26) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getFloat32FieldBuilder() { if (float32Builder_ == null) { if (!(arrowTypeEnumCase_ == 26)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } float32Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 26; onChanged(); return float32Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> date32Builder_; /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> * @return Whether the date32 field is set. */ @java.lang.Override public boolean hasDate32() { return arrowTypeEnumCase_ == 27; } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> * @return The date32. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getDate32() { if (date32Builder_ == null) { if (arrowTypeEnumCase_ == 27) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 27) { return date32Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> */ public Builder setDate32(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (date32Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { date32Builder_.setMessage(value); } arrowTypeEnumCase_ = 27; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> */ public Builder setDate32( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (date32Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { date32Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 27; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> */ public Builder mergeDate32(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (date32Builder_ == null) { if (arrowTypeEnumCase_ == 27 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 27) { date32Builder_.mergeFrom(value); } else { date32Builder_.setMessage(value); } } arrowTypeEnumCase_ = 27; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> */ public Builder clearDate32() { if (date32Builder_ == null) { if (arrowTypeEnumCase_ == 27) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 27) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } date32Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getDate32Builder() { return getDate32FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getDate32OrBuilder() { if ((arrowTypeEnumCase_ == 27) && (date32Builder_ != null)) { return date32Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 27) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getDate32FieldBuilder() { if (date32Builder_ == null) { if (!(arrowTypeEnumCase_ == 27)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } date32Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 27; onChanged(); return date32Builder_; } /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return Whether the time32 field is set. */ @java.lang.Override public boolean hasTime32() { return arrowTypeEnumCase_ == 28; } /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return The enum numeric value on the wire for time32. */ @java.lang.Override public int getTime32Value() { if (arrowTypeEnumCase_ == 28) { return ((java.lang.Integer) arrowTypeEnum_).intValue(); } return 0; } /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @param value The enum numeric value on the wire for time32 to set. * @return This builder for chaining. */ public Builder setTime32Value(int value) { arrowTypeEnumCase_ = 28; arrowTypeEnum_ = value; onChanged(); return this; } /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return The time32. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.TimeUnit getTime32() { if (arrowTypeEnumCase_ == 28) { ai.chalk.protos.chalk.arrow.v1.TimeUnit result = ai.chalk.protos.chalk.arrow.v1.TimeUnit.forNumber( (java.lang.Integer) arrowTypeEnum_); return result == null ? ai.chalk.protos.chalk.arrow.v1.TimeUnit.UNRECOGNIZED : result; } return ai.chalk.protos.chalk.arrow.v1.TimeUnit.TIME_UNIT_UNSPECIFIED; } /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @param value The time32 to set. * @return This builder for chaining. */ public Builder setTime32(ai.chalk.protos.chalk.arrow.v1.TimeUnit value) { if (value == null) { throw new NullPointerException(); } arrowTypeEnumCase_ = 28; arrowTypeEnum_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return This builder for chaining. */ public Builder clearTime32() { if (arrowTypeEnumCase_ == 28) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.List, ai.chalk.protos.chalk.arrow.v1.List.Builder, ai.chalk.protos.chalk.arrow.v1.ListOrBuilder> listBuilder_; /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> * @return Whether the list field is set. */ @java.lang.Override public boolean hasList() { return arrowTypeEnumCase_ == 29; } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> * @return The list. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.List getList() { if (listBuilder_ == null) { if (arrowTypeEnumCase_ == 29) { return (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 29) { return listBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> */ public Builder setList(ai.chalk.protos.chalk.arrow.v1.List value) { if (listBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { listBuilder_.setMessage(value); } arrowTypeEnumCase_ = 29; return this; } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> */ public Builder setList( ai.chalk.protos.chalk.arrow.v1.List.Builder builderForValue) { if (listBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { listBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 29; return this; } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> */ public Builder mergeList(ai.chalk.protos.chalk.arrow.v1.List value) { if (listBuilder_ == null) { if (arrowTypeEnumCase_ == 29 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.List.newBuilder((ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 29) { listBuilder_.mergeFrom(value); } else { listBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 29; return this; } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> */ public Builder clearList() { if (listBuilder_ == null) { if (arrowTypeEnumCase_ == 29) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 29) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } listBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> */ public ai.chalk.protos.chalk.arrow.v1.List.Builder getListBuilder() { return getListFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ListOrBuilder getListOrBuilder() { if ((arrowTypeEnumCase_ == 29) && (listBuilder_ != null)) { return listBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 29) { return (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.List, ai.chalk.protos.chalk.arrow.v1.List.Builder, ai.chalk.protos.chalk.arrow.v1.ListOrBuilder> getListFieldBuilder() { if (listBuilder_ == null) { if (!(arrowTypeEnumCase_ == 29)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.List, ai.chalk.protos.chalk.arrow.v1.List.Builder, ai.chalk.protos.chalk.arrow.v1.ListOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.List) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 29; onChanged(); return listBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.FixedSizeList, ai.chalk.protos.chalk.arrow.v1.FixedSizeList.Builder, ai.chalk.protos.chalk.arrow.v1.FixedSizeListOrBuilder> fixedSizeListBuilder_; /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> * @return Whether the fixedSizeList field is set. */ @java.lang.Override public boolean hasFixedSizeList() { return arrowTypeEnumCase_ == 30; } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> * @return The fixedSizeList. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeList getFixedSizeList() { if (fixedSizeListBuilder_ == null) { if (arrowTypeEnumCase_ == 30) { return (ai.chalk.protos.chalk.arrow.v1.FixedSizeList) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.FixedSizeList.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 30) { return fixedSizeListBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.FixedSizeList.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> */ public Builder setFixedSizeList(ai.chalk.protos.chalk.arrow.v1.FixedSizeList value) { if (fixedSizeListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { fixedSizeListBuilder_.setMessage(value); } arrowTypeEnumCase_ = 30; return this; } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> */ public Builder setFixedSizeList( ai.chalk.protos.chalk.arrow.v1.FixedSizeList.Builder builderForValue) { if (fixedSizeListBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { fixedSizeListBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 30; return this; } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> */ public Builder mergeFixedSizeList(ai.chalk.protos.chalk.arrow.v1.FixedSizeList value) { if (fixedSizeListBuilder_ == null) { if (arrowTypeEnumCase_ == 30 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.FixedSizeList.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.FixedSizeList.newBuilder((ai.chalk.protos.chalk.arrow.v1.FixedSizeList) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 30) { fixedSizeListBuilder_.mergeFrom(value); } else { fixedSizeListBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 30; return this; } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> */ public Builder clearFixedSizeList() { if (fixedSizeListBuilder_ == null) { if (arrowTypeEnumCase_ == 30) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 30) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } fixedSizeListBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> */ public ai.chalk.protos.chalk.arrow.v1.FixedSizeList.Builder getFixedSizeListBuilder() { return getFixedSizeListFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeListOrBuilder getFixedSizeListOrBuilder() { if ((arrowTypeEnumCase_ == 30) && (fixedSizeListBuilder_ != null)) { return fixedSizeListBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 30) { return (ai.chalk.protos.chalk.arrow.v1.FixedSizeList) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.FixedSizeList.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.FixedSizeList, ai.chalk.protos.chalk.arrow.v1.FixedSizeList.Builder, ai.chalk.protos.chalk.arrow.v1.FixedSizeListOrBuilder> getFixedSizeListFieldBuilder() { if (fixedSizeListBuilder_ == null) { if (!(arrowTypeEnumCase_ == 30)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.FixedSizeList.getDefaultInstance(); } fixedSizeListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.FixedSizeList, ai.chalk.protos.chalk.arrow.v1.FixedSizeList.Builder, ai.chalk.protos.chalk.arrow.v1.FixedSizeListOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.FixedSizeList) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 30; onChanged(); return fixedSizeListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> binaryBuilder_; /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> * @return Whether the binary field is set. */ @java.lang.Override public boolean hasBinary() { return arrowTypeEnumCase_ == 31; } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> * @return The binary. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getBinary() { if (binaryBuilder_ == null) { if (arrowTypeEnumCase_ == 31) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 31) { return binaryBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> */ public Builder setBinary(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (binaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { binaryBuilder_.setMessage(value); } arrowTypeEnumCase_ = 31; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> */ public Builder setBinary( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (binaryBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { binaryBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 31; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> */ public Builder mergeBinary(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (binaryBuilder_ == null) { if (arrowTypeEnumCase_ == 31 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 31) { binaryBuilder_.mergeFrom(value); } else { binaryBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 31; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> */ public Builder clearBinary() { if (binaryBuilder_ == null) { if (arrowTypeEnumCase_ == 31) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 31) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } binaryBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getBinaryBuilder() { return getBinaryFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getBinaryOrBuilder() { if ((arrowTypeEnumCase_ == 31) && (binaryBuilder_ != null)) { return binaryBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 31) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getBinaryFieldBuilder() { if (binaryBuilder_ == null) { if (!(arrowTypeEnumCase_ == 31)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 31; onChanged(); return binaryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> largeBinaryBuilder_; /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> * @return Whether the largeBinary field is set. */ @java.lang.Override public boolean hasLargeBinary() { return arrowTypeEnumCase_ == 32; } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> * @return The largeBinary. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getLargeBinary() { if (largeBinaryBuilder_ == null) { if (arrowTypeEnumCase_ == 32) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 32) { return largeBinaryBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> */ public Builder setLargeBinary(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (largeBinaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { largeBinaryBuilder_.setMessage(value); } arrowTypeEnumCase_ = 32; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> */ public Builder setLargeBinary( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder builderForValue) { if (largeBinaryBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { largeBinaryBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 32; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> */ public Builder mergeLargeBinary(ai.chalk.protos.chalk.arrow.v1.EmptyMessage value) { if (largeBinaryBuilder_ == null) { if (arrowTypeEnumCase_ == 32 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder((ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 32) { largeBinaryBuilder_.mergeFrom(value); } else { largeBinaryBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 32; return this; } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> */ public Builder clearLargeBinary() { if (largeBinaryBuilder_ == null) { if (arrowTypeEnumCase_ == 32) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 32) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } largeBinaryBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> */ public ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder getLargeBinaryBuilder() { return getLargeBinaryFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getLargeBinaryOrBuilder() { if ((arrowTypeEnumCase_ == 32) && (largeBinaryBuilder_ != null)) { return largeBinaryBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 32) { return (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder> getLargeBinaryFieldBuilder() { if (largeBinaryBuilder_ == null) { if (!(arrowTypeEnumCase_ == 32)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } largeBinaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.EmptyMessage, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder, ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 32; onChanged(); return largeBinaryBuilder_; } /** * <code>int32 fixed_size_binary = 33 [json_name = "fixedSizeBinary"];</code> * @return Whether the fixedSizeBinary field is set. */ public boolean hasFixedSizeBinary() { return arrowTypeEnumCase_ == 33; } /** * <code>int32 fixed_size_binary = 33 [json_name = "fixedSizeBinary"];</code> * @return The fixedSizeBinary. */ public int getFixedSizeBinary() { if (arrowTypeEnumCase_ == 33) { return (java.lang.Integer) arrowTypeEnum_; } return 0; } /** * <code>int32 fixed_size_binary = 33 [json_name = "fixedSizeBinary"];</code> * @param value The fixedSizeBinary to set. * @return This builder for chaining. */ public Builder setFixedSizeBinary(int value) { arrowTypeEnumCase_ = 33; arrowTypeEnum_ = value; onChanged(); return this; } /** * <code>int32 fixed_size_binary = 33 [json_name = "fixedSizeBinary"];</code> * @return This builder for chaining. */ public Builder clearFixedSizeBinary() { if (arrowTypeEnumCase_ == 33) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Decimal, ai.chalk.protos.chalk.arrow.v1.Decimal.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder> decimal128Builder_; /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> * @return Whether the decimal128 field is set. */ @java.lang.Override public boolean hasDecimal128() { return arrowTypeEnumCase_ == 34; } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> * @return The decimal128. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Decimal getDecimal128() { if (decimal128Builder_ == null) { if (arrowTypeEnumCase_ == 34) { return (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 34) { return decimal128Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> */ public Builder setDecimal128(ai.chalk.protos.chalk.arrow.v1.Decimal value) { if (decimal128Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { decimal128Builder_.setMessage(value); } arrowTypeEnumCase_ = 34; return this; } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> */ public Builder setDecimal128( ai.chalk.protos.chalk.arrow.v1.Decimal.Builder builderForValue) { if (decimal128Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { decimal128Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 34; return this; } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> */ public Builder mergeDecimal128(ai.chalk.protos.chalk.arrow.v1.Decimal value) { if (decimal128Builder_ == null) { if (arrowTypeEnumCase_ == 34 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Decimal.newBuilder((ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 34) { decimal128Builder_.mergeFrom(value); } else { decimal128Builder_.setMessage(value); } } arrowTypeEnumCase_ = 34; return this; } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> */ public Builder clearDecimal128() { if (decimal128Builder_ == null) { if (arrowTypeEnumCase_ == 34) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 34) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } decimal128Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Decimal.Builder getDecimal128Builder() { return getDecimal128FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder getDecimal128OrBuilder() { if ((arrowTypeEnumCase_ == 34) && (decimal128Builder_ != null)) { return decimal128Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 34) { return (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Decimal, ai.chalk.protos.chalk.arrow.v1.Decimal.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder> getDecimal128FieldBuilder() { if (decimal128Builder_ == null) { if (!(arrowTypeEnumCase_ == 34)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } decimal128Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Decimal, ai.chalk.protos.chalk.arrow.v1.Decimal.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 34; onChanged(); return decimal128Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Decimal, ai.chalk.protos.chalk.arrow.v1.Decimal.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder> decimal256Builder_; /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> * @return Whether the decimal256 field is set. */ @java.lang.Override public boolean hasDecimal256() { return arrowTypeEnumCase_ == 35; } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> * @return The decimal256. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Decimal getDecimal256() { if (decimal256Builder_ == null) { if (arrowTypeEnumCase_ == 35) { return (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 35) { return decimal256Builder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> */ public Builder setDecimal256(ai.chalk.protos.chalk.arrow.v1.Decimal value) { if (decimal256Builder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { decimal256Builder_.setMessage(value); } arrowTypeEnumCase_ = 35; return this; } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> */ public Builder setDecimal256( ai.chalk.protos.chalk.arrow.v1.Decimal.Builder builderForValue) { if (decimal256Builder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { decimal256Builder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 35; return this; } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> */ public Builder mergeDecimal256(ai.chalk.protos.chalk.arrow.v1.Decimal value) { if (decimal256Builder_ == null) { if (arrowTypeEnumCase_ == 35 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Decimal.newBuilder((ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 35) { decimal256Builder_.mergeFrom(value); } else { decimal256Builder_.setMessage(value); } } arrowTypeEnumCase_ = 35; return this; } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> */ public Builder clearDecimal256() { if (decimal256Builder_ == null) { if (arrowTypeEnumCase_ == 35) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 35) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } decimal256Builder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Decimal.Builder getDecimal256Builder() { return getDecimal256FieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder getDecimal256OrBuilder() { if ((arrowTypeEnumCase_ == 35) && (decimal256Builder_ != null)) { return decimal256Builder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 35) { return (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Decimal, ai.chalk.protos.chalk.arrow.v1.Decimal.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder> getDecimal256FieldBuilder() { if (decimal256Builder_ == null) { if (!(arrowTypeEnumCase_ == 35)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } decimal256Builder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Decimal, ai.chalk.protos.chalk.arrow.v1.Decimal.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.Decimal) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 35; onChanged(); return decimal256Builder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Map, ai.chalk.protos.chalk.arrow.v1.Map.Builder, ai.chalk.protos.chalk.arrow.v1.MapOrBuilder> mapBuilder_; /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> * @return Whether the map field is set. */ @java.lang.Override public boolean hasMap() { return arrowTypeEnumCase_ == 36; } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> * @return The map. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Map getMap() { if (mapBuilder_ == null) { if (arrowTypeEnumCase_ == 36) { return (ai.chalk.protos.chalk.arrow.v1.Map) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Map.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 36) { return mapBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.Map.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> */ public Builder setMap(ai.chalk.protos.chalk.arrow.v1.Map value) { if (mapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { mapBuilder_.setMessage(value); } arrowTypeEnumCase_ = 36; return this; } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> */ public Builder setMap( ai.chalk.protos.chalk.arrow.v1.Map.Builder builderForValue) { if (mapBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { mapBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 36; return this; } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> */ public Builder mergeMap(ai.chalk.protos.chalk.arrow.v1.Map value) { if (mapBuilder_ == null) { if (arrowTypeEnumCase_ == 36 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.Map.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Map.newBuilder((ai.chalk.protos.chalk.arrow.v1.Map) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 36) { mapBuilder_.mergeFrom(value); } else { mapBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 36; return this; } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> */ public Builder clearMap() { if (mapBuilder_ == null) { if (arrowTypeEnumCase_ == 36) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 36) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } mapBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Map.Builder getMapBuilder() { return getMapFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.MapOrBuilder getMapOrBuilder() { if ((arrowTypeEnumCase_ == 36) && (mapBuilder_ != null)) { return mapBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 36) { return (ai.chalk.protos.chalk.arrow.v1.Map) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Map.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Map, ai.chalk.protos.chalk.arrow.v1.Map.Builder, ai.chalk.protos.chalk.arrow.v1.MapOrBuilder> getMapFieldBuilder() { if (mapBuilder_ == null) { if (!(arrowTypeEnumCase_ == 36)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Map.getDefaultInstance(); } mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Map, ai.chalk.protos.chalk.arrow.v1.Map.Builder, ai.chalk.protos.chalk.arrow.v1.MapOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.Map) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 36; onChanged(); return mapBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Extension, ai.chalk.protos.chalk.arrow.v1.Extension.Builder, ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder> extensionBuilder_; /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> * @return Whether the extension field is set. */ @java.lang.Override public boolean hasExtension() { return arrowTypeEnumCase_ == 37; } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> * @return The extension. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Extension getExtension() { if (extensionBuilder_ == null) { if (arrowTypeEnumCase_ == 37) { return (ai.chalk.protos.chalk.arrow.v1.Extension) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance(); } else { if (arrowTypeEnumCase_ == 37) { return extensionBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> */ public Builder setExtension(ai.chalk.protos.chalk.arrow.v1.Extension value) { if (extensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowTypeEnum_ = value; onChanged(); } else { extensionBuilder_.setMessage(value); } arrowTypeEnumCase_ = 37; return this; } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> */ public Builder setExtension( ai.chalk.protos.chalk.arrow.v1.Extension.Builder builderForValue) { if (extensionBuilder_ == null) { arrowTypeEnum_ = builderForValue.build(); onChanged(); } else { extensionBuilder_.setMessage(builderForValue.build()); } arrowTypeEnumCase_ = 37; return this; } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> */ public Builder mergeExtension(ai.chalk.protos.chalk.arrow.v1.Extension value) { if (extensionBuilder_ == null) { if (arrowTypeEnumCase_ == 37 && arrowTypeEnum_ != ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance()) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Extension.newBuilder((ai.chalk.protos.chalk.arrow.v1.Extension) arrowTypeEnum_) .mergeFrom(value).buildPartial(); } else { arrowTypeEnum_ = value; } onChanged(); } else { if (arrowTypeEnumCase_ == 37) { extensionBuilder_.mergeFrom(value); } else { extensionBuilder_.setMessage(value); } } arrowTypeEnumCase_ = 37; return this; } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> */ public Builder clearExtension() { if (extensionBuilder_ == null) { if (arrowTypeEnumCase_ == 37) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; onChanged(); } } else { if (arrowTypeEnumCase_ == 37) { arrowTypeEnumCase_ = 0; arrowTypeEnum_ = null; } extensionBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Extension.Builder getExtensionBuilder() { return getExtensionFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder getExtensionOrBuilder() { if ((arrowTypeEnumCase_ == 37) && (extensionBuilder_ != null)) { return extensionBuilder_.getMessageOrBuilder(); } else { if (arrowTypeEnumCase_ == 37) { return (ai.chalk.protos.chalk.arrow.v1.Extension) arrowTypeEnum_; } return ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Extension, ai.chalk.protos.chalk.arrow.v1.Extension.Builder, ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder> getExtensionFieldBuilder() { if (extensionBuilder_ == null) { if (!(arrowTypeEnumCase_ == 37)) { arrowTypeEnum_ = ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance(); } extensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Extension, ai.chalk.protos.chalk.arrow.v1.Extension.Builder, ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.Extension) arrowTypeEnum_, getParentForChildren(), isClean()); arrowTypeEnum_ = null; } arrowTypeEnumCase_ = 37; onChanged(); return extensionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.ArrowType) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.ArrowType) private static final ai.chalk.protos.chalk.arrow.v1.ArrowType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.ArrowType(); } public static ai.chalk.protos.chalk.arrow.v1.ArrowType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ArrowType> PARSER = new com.google.protobuf.AbstractParser<ArrowType>() { @java.lang.Override public ArrowType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<ArrowType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ArrowType> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ArrowTypeOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ArrowTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.ArrowType) com.google.protobuf.MessageOrBuilder { /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> * @return Whether the none field is set. */ boolean hasNone(); /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> * @return The none. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getNone(); /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.EmptyMessage none = 1 [json_name = "none"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getNoneOrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> * @return Whether the bool field is set. */ boolean hasBool(); /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> * @return The bool. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getBool(); /** * <code>.chalk.arrow.v1.EmptyMessage bool = 2 [json_name = "bool"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getBoolOrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> * @return Whether the float64 field is set. */ boolean hasFloat64(); /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> * @return The float64. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getFloat64(); /** * <code>.chalk.arrow.v1.EmptyMessage float64 = 3 [json_name = "float64"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getFloat64OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> * @return Whether the int64 field is set. */ boolean hasInt64(); /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> * @return The int64. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt64(); /** * <code>.chalk.arrow.v1.EmptyMessage int64 = 4 [json_name = "int64"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt64OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> * @return Whether the largeUtf8 field is set. */ boolean hasLargeUtf8(); /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> * @return The largeUtf8. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getLargeUtf8(); /** * <code>.chalk.arrow.v1.EmptyMessage large_utf8 = 5 [json_name = "largeUtf8"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getLargeUtf8OrBuilder(); /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> * @return The timestamp. */ ai.chalk.protos.chalk.arrow.v1.Timestamp getTimestamp(); /** * <code>.chalk.arrow.v1.Timestamp timestamp = 6 [json_name = "timestamp"];</code> */ ai.chalk.protos.chalk.arrow.v1.TimestampOrBuilder getTimestampOrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> * @return Whether the date64 field is set. */ boolean hasDate64(); /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> * @return The date64. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getDate64(); /** * <code>.chalk.arrow.v1.EmptyMessage date64 = 7 [json_name = "date64"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getDate64OrBuilder(); /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> * @return Whether the struct field is set. */ boolean hasStruct(); /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> * @return The struct. */ ai.chalk.protos.chalk.arrow.v1.Struct getStruct(); /** * <code>.chalk.arrow.v1.Struct struct = 8 [json_name = "struct"];</code> */ ai.chalk.protos.chalk.arrow.v1.StructOrBuilder getStructOrBuilder(); /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> * @return Whether the largeList field is set. */ boolean hasLargeList(); /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> * @return The largeList. */ ai.chalk.protos.chalk.arrow.v1.List getLargeList(); /** * <code>.chalk.arrow.v1.List large_list = 9 [json_name = "largeList"];</code> */ ai.chalk.protos.chalk.arrow.v1.ListOrBuilder getLargeListOrBuilder(); /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return Whether the time64 field is set. */ boolean hasTime64(); /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return The enum numeric value on the wire for time64. */ int getTime64Value(); /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.TimeUnit time64 = 10 [json_name = "time64"];</code> * @return The time64. */ ai.chalk.protos.chalk.arrow.v1.TimeUnit getTime64(); /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return Whether the duration field is set. */ boolean hasDuration(); /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return The enum numeric value on the wire for duration. */ int getDurationValue(); /** * <code>.chalk.arrow.v1.TimeUnit duration = 16 [json_name = "duration"];</code> * @return The duration. */ ai.chalk.protos.chalk.arrow.v1.TimeUnit getDuration(); /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> * @return Whether the utf8 field is set. */ boolean hasUtf8(); /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> * @return The utf8. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUtf8(); /** * <code>.chalk.arrow.v1.EmptyMessage utf8 = 17 [json_name = "utf8"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUtf8OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> * @return Whether the int8 field is set. */ boolean hasInt8(); /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> * @return The int8. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt8(); /** * <code>.chalk.arrow.v1.EmptyMessage int8 = 18 [json_name = "int8"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt8OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> * @return Whether the int16 field is set. */ boolean hasInt16(); /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> * @return The int16. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt16(); /** * <code>.chalk.arrow.v1.EmptyMessage int16 = 19 [json_name = "int16"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt16OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> * @return Whether the int32 field is set. */ boolean hasInt32(); /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> * @return The int32. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getInt32(); /** * <code>.chalk.arrow.v1.EmptyMessage int32 = 20 [json_name = "int32"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getInt32OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> * @return Whether the uint8 field is set. */ boolean hasUint8(); /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> * @return The uint8. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint8(); /** * <code>.chalk.arrow.v1.EmptyMessage uint8 = 21 [json_name = "uint8"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint8OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> * @return Whether the uint16 field is set. */ boolean hasUint16(); /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> * @return The uint16. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint16(); /** * <code>.chalk.arrow.v1.EmptyMessage uint16 = 22 [json_name = "uint16"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint16OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> * @return Whether the uint32 field is set. */ boolean hasUint32(); /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> * @return The uint32. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint32(); /** * <code>.chalk.arrow.v1.EmptyMessage uint32 = 23 [json_name = "uint32"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint32OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> * @return Whether the uint64 field is set. */ boolean hasUint64(); /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> * @return The uint64. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getUint64(); /** * <code>.chalk.arrow.v1.EmptyMessage uint64 = 24 [json_name = "uint64"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getUint64OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> * @return Whether the float16 field is set. */ boolean hasFloat16(); /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> * @return The float16. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getFloat16(); /** * <code>.chalk.arrow.v1.EmptyMessage float16 = 25 [json_name = "float16"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getFloat16OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> * @return Whether the float32 field is set. */ boolean hasFloat32(); /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> * @return The float32. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getFloat32(); /** * <code>.chalk.arrow.v1.EmptyMessage float32 = 26 [json_name = "float32"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getFloat32OrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> * @return Whether the date32 field is set. */ boolean hasDate32(); /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> * @return The date32. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getDate32(); /** * <code>.chalk.arrow.v1.EmptyMessage date32 = 27 [json_name = "date32"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getDate32OrBuilder(); /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return Whether the time32 field is set. */ boolean hasTime32(); /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return The enum numeric value on the wire for time32. */ int getTime32Value(); /** * <code>.chalk.arrow.v1.TimeUnit time32 = 28 [json_name = "time32"];</code> * @return The time32. */ ai.chalk.protos.chalk.arrow.v1.TimeUnit getTime32(); /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> * @return Whether the list field is set. */ boolean hasList(); /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> * @return The list. */ ai.chalk.protos.chalk.arrow.v1.List getList(); /** * <code>.chalk.arrow.v1.List list = 29 [json_name = "list"];</code> */ ai.chalk.protos.chalk.arrow.v1.ListOrBuilder getListOrBuilder(); /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> * @return Whether the fixedSizeList field is set. */ boolean hasFixedSizeList(); /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> * @return The fixedSizeList. */ ai.chalk.protos.chalk.arrow.v1.FixedSizeList getFixedSizeList(); /** * <code>.chalk.arrow.v1.FixedSizeList fixed_size_list = 30 [json_name = "fixedSizeList"];</code> */ ai.chalk.protos.chalk.arrow.v1.FixedSizeListOrBuilder getFixedSizeListOrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> * @return Whether the binary field is set. */ boolean hasBinary(); /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> * @return The binary. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getBinary(); /** * <code>.chalk.arrow.v1.EmptyMessage binary = 31 [json_name = "binary"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getBinaryOrBuilder(); /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> * @return Whether the largeBinary field is set. */ boolean hasLargeBinary(); /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> * @return The largeBinary. */ ai.chalk.protos.chalk.arrow.v1.EmptyMessage getLargeBinary(); /** * <code>.chalk.arrow.v1.EmptyMessage large_binary = 32 [json_name = "largeBinary"];</code> */ ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder getLargeBinaryOrBuilder(); /** * <code>int32 fixed_size_binary = 33 [json_name = "fixedSizeBinary"];</code> * @return Whether the fixedSizeBinary field is set. */ boolean hasFixedSizeBinary(); /** * <code>int32 fixed_size_binary = 33 [json_name = "fixedSizeBinary"];</code> * @return The fixedSizeBinary. */ int getFixedSizeBinary(); /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> * @return Whether the decimal128 field is set. */ boolean hasDecimal128(); /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> * @return The decimal128. */ ai.chalk.protos.chalk.arrow.v1.Decimal getDecimal128(); /** * <code>.chalk.arrow.v1.Decimal decimal_128 = 34 [json_name = "decimal128"];</code> */ ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder getDecimal128OrBuilder(); /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> * @return Whether the decimal256 field is set. */ boolean hasDecimal256(); /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> * @return The decimal256. */ ai.chalk.protos.chalk.arrow.v1.Decimal getDecimal256(); /** * <code>.chalk.arrow.v1.Decimal decimal_256 = 35 [json_name = "decimal256"];</code> */ ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder getDecimal256OrBuilder(); /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> * @return Whether the map field is set. */ boolean hasMap(); /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> * @return The map. */ ai.chalk.protos.chalk.arrow.v1.Map getMap(); /** * <code>.chalk.arrow.v1.Map map = 36 [json_name = "map"];</code> */ ai.chalk.protos.chalk.arrow.v1.MapOrBuilder getMapOrBuilder(); /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> * @return Whether the extension field is set. */ boolean hasExtension(); /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> * @return The extension. */ ai.chalk.protos.chalk.arrow.v1.Extension getExtension(); /** * <code>.chalk.arrow.v1.Extension extension = 37 [json_name = "extension"];</code> */ ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder getExtensionOrBuilder(); ai.chalk.protos.chalk.arrow.v1.ArrowType.ArrowTypeEnumCase getArrowTypeEnumCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/Decimal.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.Decimal} */ public final class Decimal extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.Decimal) DecimalOrBuilder { private static final long serialVersionUID = 0L; // Use Decimal.newBuilder() to construct. private Decimal(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Decimal() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Decimal(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Decimal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Decimal_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Decimal.class, ai.chalk.protos.chalk.arrow.v1.Decimal.Builder.class); } public static final int PRECISION_FIELD_NUMBER = 1; private int precision_ = 0; /** * <code>int32 precision = 1 [json_name = "precision"];</code> * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } public static final int SCALE_FIELD_NUMBER = 2; private int scale_ = 0; /** * <code>int32 scale = 2 [json_name = "scale"];</code> * @return The scale. */ @java.lang.Override public int getScale() { return scale_; } 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 (precision_ != 0) { output.writeInt32(1, precision_); } if (scale_ != 0) { output.writeInt32(2, scale_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (precision_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, precision_); } if (scale_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, scale_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.Decimal)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.Decimal other = (ai.chalk.protos.chalk.arrow.v1.Decimal) obj; if (getPrecision() != other.getPrecision()) return false; if (getScale() != other.getScale()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRECISION_FIELD_NUMBER; hash = (53 * hash) + getPrecision(); hash = (37 * hash) + SCALE_FIELD_NUMBER; hash = (53 * hash) + getScale(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.Decimal parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Decimal parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Decimal parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Decimal parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Decimal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Decimal parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Decimal parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Decimal 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 ai.chalk.protos.chalk.arrow.v1.Decimal parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Decimal 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 ai.chalk.protos.chalk.arrow.v1.Decimal parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Decimal 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(ai.chalk.protos.chalk.arrow.v1.Decimal 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; } /** * Protobuf type {@code chalk.arrow.v1.Decimal} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.Decimal) ai.chalk.protos.chalk.arrow.v1.DecimalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Decimal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Decimal_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Decimal.class, ai.chalk.protos.chalk.arrow.v1.Decimal.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.Decimal.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; precision_ = 0; scale_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Decimal_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Decimal getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Decimal build() { ai.chalk.protos.chalk.arrow.v1.Decimal result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Decimal buildPartial() { ai.chalk.protos.chalk.arrow.v1.Decimal result = new ai.chalk.protos.chalk.arrow.v1.Decimal(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.Decimal result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.precision_ = precision_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.scale_ = scale_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.Decimal) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.Decimal)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.Decimal other) { if (other == ai.chalk.protos.chalk.arrow.v1.Decimal.getDefaultInstance()) return this; if (other.getPrecision() != 0) { setPrecision(other.getPrecision()); } if (other.getScale() != 0) { setScale(other.getScale()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { precision_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { scale_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int precision_ ; /** * <code>int32 precision = 1 [json_name = "precision"];</code> * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } /** * <code>int32 precision = 1 [json_name = "precision"];</code> * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { precision_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>int32 precision = 1 [json_name = "precision"];</code> * @return This builder for chaining. */ public Builder clearPrecision() { bitField0_ = (bitField0_ & ~0x00000001); precision_ = 0; onChanged(); return this; } private int scale_ ; /** * <code>int32 scale = 2 [json_name = "scale"];</code> * @return The scale. */ @java.lang.Override public int getScale() { return scale_; } /** * <code>int32 scale = 2 [json_name = "scale"];</code> * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { scale_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>int32 scale = 2 [json_name = "scale"];</code> * @return This builder for chaining. */ public Builder clearScale() { bitField0_ = (bitField0_ & ~0x00000002); scale_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.Decimal) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.Decimal) private static final ai.chalk.protos.chalk.arrow.v1.Decimal DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.Decimal(); } public static ai.chalk.protos.chalk.arrow.v1.Decimal getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Decimal> PARSER = new com.google.protobuf.AbstractParser<Decimal>() { @java.lang.Override public Decimal parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<Decimal> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Decimal> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Decimal getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/DecimalOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface DecimalOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.Decimal) com.google.protobuf.MessageOrBuilder { /** * <code>int32 precision = 1 [json_name = "precision"];</code> * @return The precision. */ int getPrecision(); /** * <code>int32 scale = 2 [json_name = "scale"];</code> * @return The scale. */ int getScale(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/DecimalValue.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.DecimalValue} */ public final class DecimalValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.DecimalValue) DecimalValueOrBuilder { private static final long serialVersionUID = 0L; // Use DecimalValue.newBuilder() to construct. private DecimalValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DecimalValue() { value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DecimalValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_DecimalValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_DecimalValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.DecimalValue.class, ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * <code>bytes value = 1 [json_name = "value"];</code> * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } public static final int PRECISION_FIELD_NUMBER = 2; private int precision_ = 0; /** * <code>int32 precision = 2 [json_name = "precision"];</code> * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } public static final int SCALE_FIELD_NUMBER = 3; private int scale_ = 0; /** * <code>int32 scale = 3 [json_name = "scale"];</code> * @return The scale. */ @java.lang.Override public int getScale() { return scale_; } 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 (!value_.isEmpty()) { output.writeBytes(1, value_); } if (precision_ != 0) { output.writeInt32(2, precision_); } if (scale_ != 0) { output.writeInt32(3, scale_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, value_); } if (precision_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, precision_); } if (scale_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, scale_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.DecimalValue)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.DecimalValue other = (ai.chalk.protos.chalk.arrow.v1.DecimalValue) obj; if (!getValue() .equals(other.getValue())) return false; if (getPrecision() != other.getPrecision()) return false; if (getScale() != other.getScale()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + PRECISION_FIELD_NUMBER; hash = (53 * hash) + getPrecision(); hash = (37 * hash) + SCALE_FIELD_NUMBER; hash = (53 * hash) + getScale(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue 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 ai.chalk.protos.chalk.arrow.v1.DecimalValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue 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 ai.chalk.protos.chalk.arrow.v1.DecimalValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue 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(ai.chalk.protos.chalk.arrow.v1.DecimalValue 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; } /** * Protobuf type {@code chalk.arrow.v1.DecimalValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.DecimalValue) ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_DecimalValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_DecimalValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.DecimalValue.class, ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.DecimalValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = com.google.protobuf.ByteString.EMPTY; precision_ = 0; scale_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_DecimalValue_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValue getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValue build() { ai.chalk.protos.chalk.arrow.v1.DecimalValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValue buildPartial() { ai.chalk.protos.chalk.arrow.v1.DecimalValue result = new ai.chalk.protos.chalk.arrow.v1.DecimalValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.DecimalValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = value_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.precision_ = precision_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.scale_ = scale_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.DecimalValue) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.DecimalValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.DecimalValue other) { if (other == ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance()) return this; if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.getPrecision() != 0) { setPrecision(other.getPrecision()); } if (other.getScale() != 0) { setScale(other.getScale()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { value_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { precision_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { scale_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * <code>bytes value = 1 [json_name = "value"];</code> * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * <code>bytes value = 1 [json_name = "value"];</code> * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>bytes value = 1 [json_name = "value"];</code> * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } private int precision_ ; /** * <code>int32 precision = 2 [json_name = "precision"];</code> * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } /** * <code>int32 precision = 2 [json_name = "precision"];</code> * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { precision_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>int32 precision = 2 [json_name = "precision"];</code> * @return This builder for chaining. */ public Builder clearPrecision() { bitField0_ = (bitField0_ & ~0x00000002); precision_ = 0; onChanged(); return this; } private int scale_ ; /** * <code>int32 scale = 3 [json_name = "scale"];</code> * @return The scale. */ @java.lang.Override public int getScale() { return scale_; } /** * <code>int32 scale = 3 [json_name = "scale"];</code> * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { scale_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>int32 scale = 3 [json_name = "scale"];</code> * @return This builder for chaining. */ public Builder clearScale() { bitField0_ = (bitField0_ & ~0x00000004); scale_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.DecimalValue) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.DecimalValue) private static final ai.chalk.protos.chalk.arrow.v1.DecimalValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.DecimalValue(); } public static ai.chalk.protos.chalk.arrow.v1.DecimalValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DecimalValue> PARSER = new com.google.protobuf.AbstractParser<DecimalValue>() { @java.lang.Override public DecimalValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DecimalValue> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DecimalValue> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/DecimalValueOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface DecimalValueOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.DecimalValue) com.google.protobuf.MessageOrBuilder { /** * <code>bytes value = 1 [json_name = "value"];</code> * @return The value. */ com.google.protobuf.ByteString getValue(); /** * <code>int32 precision = 2 [json_name = "precision"];</code> * @return The precision. */ int getPrecision(); /** * <code>int32 scale = 3 [json_name = "scale"];</code> * @return The scale. */ int getScale(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/EmptyMessage.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.EmptyMessage} */ public final class EmptyMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.EmptyMessage) EmptyMessageOrBuilder { private static final long serialVersionUID = 0L; // Use EmptyMessage.newBuilder() to construct. private EmptyMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private EmptyMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EmptyMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_EmptyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_EmptyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.class, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.EmptyMessage)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.EmptyMessage other = (ai.chalk.protos.chalk.arrow.v1.EmptyMessage) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage 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 ai.chalk.protos.chalk.arrow.v1.EmptyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage 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 ai.chalk.protos.chalk.arrow.v1.EmptyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage 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(ai.chalk.protos.chalk.arrow.v1.EmptyMessage 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; } /** * Protobuf type {@code chalk.arrow.v1.EmptyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.EmptyMessage) ai.chalk.protos.chalk.arrow.v1.EmptyMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_EmptyMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_EmptyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.EmptyMessage.class, ai.chalk.protos.chalk.arrow.v1.EmptyMessage.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.EmptyMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_EmptyMessage_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage build() { ai.chalk.protos.chalk.arrow.v1.EmptyMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage buildPartial() { ai.chalk.protos.chalk.arrow.v1.EmptyMessage result = new ai.chalk.protos.chalk.arrow.v1.EmptyMessage(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.EmptyMessage) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.EmptyMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.EmptyMessage other) { if (other == ai.chalk.protos.chalk.arrow.v1.EmptyMessage.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.EmptyMessage) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.EmptyMessage) private static final ai.chalk.protos.chalk.arrow.v1.EmptyMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.EmptyMessage(); } public static ai.chalk.protos.chalk.arrow.v1.EmptyMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<EmptyMessage> PARSER = new com.google.protobuf.AbstractParser<EmptyMessage>() { @java.lang.Override public EmptyMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<EmptyMessage> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<EmptyMessage> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.EmptyMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/EmptyMessageOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface EmptyMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.EmptyMessage) com.google.protobuf.MessageOrBuilder { }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/Extension.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * <pre> * Extension is used to * </pre> * * Protobuf type {@code chalk.arrow.v1.Extension} */ public final class Extension extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.Extension) ExtensionOrBuilder { private static final long serialVersionUID = 0L; // Use Extension.newBuilder() to construct. private Extension(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Extension() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Extension(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Extension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Extension_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Extension.class, ai.chalk.protos.chalk.arrow.v1.Extension.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * <pre> * The name of the extension -- e.g. arrow.json. See * https://arrow.apache.org/docs/format/CanonicalExtensions.html * </pre> * * <code>string name = 1 [json_name = "name"];</code> * @return The name. */ @java.lang.Override 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; } } /** * <pre> * The name of the extension -- e.g. arrow.json. See * https://arrow.apache.org/docs/format/CanonicalExtensions.html * </pre> * * <code>string name = 1 [json_name = "name"];</code> * @return The bytes for name. */ @java.lang.Override 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 STORAGE_TYPE_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.arrow.v1.ArrowType storageType_; /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> * @return Whether the storageType field is set. */ @java.lang.Override public boolean hasStorageType() { return ((bitField0_ & 0x00000001) != 0); } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> * @return The storageType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getStorageType() { return storageType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : storageType_; } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getStorageTypeOrBuilder() { return storageType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : storageType_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getStorageType()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStorageType()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.Extension)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.Extension other = (ai.chalk.protos.chalk.arrow.v1.Extension) obj; if (!getName() .equals(other.getName())) return false; if (hasStorageType() != other.hasStorageType()) return false; if (hasStorageType()) { if (!getStorageType() .equals(other.getStorageType())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasStorageType()) { hash = (37 * hash) + STORAGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getStorageType().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.Extension parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Extension parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Extension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Extension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Extension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Extension parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Extension 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 ai.chalk.protos.chalk.arrow.v1.Extension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Extension 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 ai.chalk.protos.chalk.arrow.v1.Extension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Extension 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(ai.chalk.protos.chalk.arrow.v1.Extension 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; } /** * <pre> * Extension is used to * </pre> * * Protobuf type {@code chalk.arrow.v1.Extension} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.Extension) ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Extension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Extension_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Extension.class, ai.chalk.protos.chalk.arrow.v1.Extension.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.Extension.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStorageTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; storageType_ = null; if (storageTypeBuilder_ != null) { storageTypeBuilder_.dispose(); storageTypeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Extension_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Extension getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Extension build() { ai.chalk.protos.chalk.arrow.v1.Extension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Extension buildPartial() { ai.chalk.protos.chalk.arrow.v1.Extension result = new ai.chalk.protos.chalk.arrow.v1.Extension(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.Extension result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.storageType_ = storageTypeBuilder_ == null ? storageType_ : storageTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.Extension) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.Extension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.Extension other) { if (other == ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasStorageType()) { mergeStorageType(other.getStorageType()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getStorageTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * <pre> * The name of the extension -- e.g. arrow.json. See * https://arrow.apache.org/docs/format/CanonicalExtensions.html * </pre> * * <code>string name = 1 [json_name = "name"];</code> * @return The name. */ 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; } } /** * <pre> * The name of the extension -- e.g. arrow.json. See * https://arrow.apache.org/docs/format/CanonicalExtensions.html * </pre> * * <code>string name = 1 [json_name = "name"];</code> * @return The bytes for name. */ 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; } } /** * <pre> * The name of the extension -- e.g. arrow.json. See * https://arrow.apache.org/docs/format/CanonicalExtensions.html * </pre> * * <code>string name = 1 [json_name = "name"];</code> * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <pre> * The name of the extension -- e.g. arrow.json. See * https://arrow.apache.org/docs/format/CanonicalExtensions.html * </pre> * * <code>string name = 1 [json_name = "name"];</code> * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <pre> * The name of the extension -- e.g. arrow.json. See * https://arrow.apache.org/docs/format/CanonicalExtensions.html * </pre> * * <code>string name = 1 [json_name = "name"];</code> * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private ai.chalk.protos.chalk.arrow.v1.ArrowType storageType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> storageTypeBuilder_; /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> * @return Whether the storageType field is set. */ public boolean hasStorageType() { return ((bitField0_ & 0x00000002) != 0); } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> * @return The storageType. */ public ai.chalk.protos.chalk.arrow.v1.ArrowType getStorageType() { if (storageTypeBuilder_ == null) { return storageType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : storageType_; } else { return storageTypeBuilder_.getMessage(); } } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> */ public Builder setStorageType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (storageTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storageType_ = value; } else { storageTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> */ public Builder setStorageType( ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder builderForValue) { if (storageTypeBuilder_ == null) { storageType_ = builderForValue.build(); } else { storageTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> */ public Builder mergeStorageType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (storageTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && storageType_ != null && storageType_ != ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) { getStorageTypeBuilder().mergeFrom(value); } else { storageType_ = value; } } else { storageTypeBuilder_.mergeFrom(value); } if (storageType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> */ public Builder clearStorageType() { bitField0_ = (bitField0_ & ~0x00000002); storageType_ = null; if (storageTypeBuilder_ != null) { storageTypeBuilder_.dispose(); storageTypeBuilder_ = null; } onChanged(); return this; } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder getStorageTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStorageTypeFieldBuilder().getBuilder(); } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getStorageTypeOrBuilder() { if (storageTypeBuilder_ != null) { return storageTypeBuilder_.getMessageOrBuilder(); } else { return storageType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : storageType_; } } /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> getStorageTypeFieldBuilder() { if (storageTypeBuilder_ == null) { storageTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder>( getStorageType(), getParentForChildren(), isClean()); storageType_ = null; } return storageTypeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.Extension) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.Extension) private static final ai.chalk.protos.chalk.arrow.v1.Extension DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.Extension(); } public static ai.chalk.protos.chalk.arrow.v1.Extension getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Extension> PARSER = new com.google.protobuf.AbstractParser<Extension>() { @java.lang.Override public Extension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<Extension> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Extension> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Extension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ExtensionOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ExtensionOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.Extension) com.google.protobuf.MessageOrBuilder { /** * <pre> * The name of the extension -- e.g. arrow.json. See * https://arrow.apache.org/docs/format/CanonicalExtensions.html * </pre> * * <code>string name = 1 [json_name = "name"];</code> * @return The name. */ java.lang.String getName(); /** * <pre> * The name of the extension -- e.g. arrow.json. See * https://arrow.apache.org/docs/format/CanonicalExtensions.html * </pre> * * <code>string name = 1 [json_name = "name"];</code> * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> * @return Whether the storageType field is set. */ boolean hasStorageType(); /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> * @return The storageType. */ ai.chalk.protos.chalk.arrow.v1.ArrowType getStorageType(); /** * <pre> * The underlying storage type for this extension type. * </pre> * * <code>.chalk.arrow.v1.ArrowType storage_type = 2 [json_name = "storageType"];</code> */ ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getStorageTypeOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ExtensionValue.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.ExtensionValue} */ public final class ExtensionValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.ExtensionValue) ExtensionValueOrBuilder { private static final long serialVersionUID = 0L; // Use ExtensionValue.newBuilder() to construct. private ExtensionValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ExtensionValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExtensionValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ExtensionValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ExtensionValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ExtensionValue.class, ai.chalk.protos.chalk.arrow.v1.ExtensionValue.Builder.class); } private int bitField0_; public static final int EXTENSION_TYPE_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.arrow.v1.Extension extensionType_; /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> * @return Whether the extensionType field is set. */ @java.lang.Override public boolean hasExtensionType() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> * @return The extensionType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Extension getExtensionType() { return extensionType_ == null ? ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance() : extensionType_; } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder getExtensionTypeOrBuilder() { return extensionType_ == null ? ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance() : extensionType_; } public static final int STORAGE_VALUE_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.arrow.v1.ScalarValue storageValue_; /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> * @return Whether the storageValue field is set. */ @java.lang.Override public boolean hasStorageValue() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> * @return The storageValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getStorageValue() { return storageValue_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : storageValue_; } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getStorageValueOrBuilder() { return storageValue_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : storageValue_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getExtensionType()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getStorageValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getExtensionType()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStorageValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.ExtensionValue)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.ExtensionValue other = (ai.chalk.protos.chalk.arrow.v1.ExtensionValue) obj; if (hasExtensionType() != other.hasExtensionType()) return false; if (hasExtensionType()) { if (!getExtensionType() .equals(other.getExtensionType())) return false; } if (hasStorageValue() != other.hasStorageValue()) return false; if (hasStorageValue()) { if (!getStorageValue() .equals(other.getStorageValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasExtensionType()) { hash = (37 * hash) + EXTENSION_TYPE_FIELD_NUMBER; hash = (53 * hash) + getExtensionType().hashCode(); } if (hasStorageValue()) { hash = (37 * hash) + STORAGE_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStorageValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue 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 ai.chalk.protos.chalk.arrow.v1.ExtensionValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue 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 ai.chalk.protos.chalk.arrow.v1.ExtensionValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue 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(ai.chalk.protos.chalk.arrow.v1.ExtensionValue 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; } /** * Protobuf type {@code chalk.arrow.v1.ExtensionValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.ExtensionValue) ai.chalk.protos.chalk.arrow.v1.ExtensionValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ExtensionValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ExtensionValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ExtensionValue.class, ai.chalk.protos.chalk.arrow.v1.ExtensionValue.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.ExtensionValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getExtensionTypeFieldBuilder(); getStorageValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; extensionType_ = null; if (extensionTypeBuilder_ != null) { extensionTypeBuilder_.dispose(); extensionTypeBuilder_ = null; } storageValue_ = null; if (storageValueBuilder_ != null) { storageValueBuilder_.dispose(); storageValueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ExtensionValue_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionValue getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.ExtensionValue.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionValue build() { ai.chalk.protos.chalk.arrow.v1.ExtensionValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionValue buildPartial() { ai.chalk.protos.chalk.arrow.v1.ExtensionValue result = new ai.chalk.protos.chalk.arrow.v1.ExtensionValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.ExtensionValue result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.extensionType_ = extensionTypeBuilder_ == null ? extensionType_ : extensionTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.storageValue_ = storageValueBuilder_ == null ? storageValue_ : storageValueBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.ExtensionValue) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.ExtensionValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.ExtensionValue other) { if (other == ai.chalk.protos.chalk.arrow.v1.ExtensionValue.getDefaultInstance()) return this; if (other.hasExtensionType()) { mergeExtensionType(other.getExtensionType()); } if (other.hasStorageValue()) { mergeStorageValue(other.getStorageValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getExtensionTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getStorageValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private ai.chalk.protos.chalk.arrow.v1.Extension extensionType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Extension, ai.chalk.protos.chalk.arrow.v1.Extension.Builder, ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder> extensionTypeBuilder_; /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> * @return Whether the extensionType field is set. */ public boolean hasExtensionType() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> * @return The extensionType. */ public ai.chalk.protos.chalk.arrow.v1.Extension getExtensionType() { if (extensionTypeBuilder_ == null) { return extensionType_ == null ? ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance() : extensionType_; } else { return extensionTypeBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> */ public Builder setExtensionType(ai.chalk.protos.chalk.arrow.v1.Extension value) { if (extensionTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extensionType_ = value; } else { extensionTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> */ public Builder setExtensionType( ai.chalk.protos.chalk.arrow.v1.Extension.Builder builderForValue) { if (extensionTypeBuilder_ == null) { extensionType_ = builderForValue.build(); } else { extensionTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> */ public Builder mergeExtensionType(ai.chalk.protos.chalk.arrow.v1.Extension value) { if (extensionTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && extensionType_ != null && extensionType_ != ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance()) { getExtensionTypeBuilder().mergeFrom(value); } else { extensionType_ = value; } } else { extensionTypeBuilder_.mergeFrom(value); } if (extensionType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> */ public Builder clearExtensionType() { bitField0_ = (bitField0_ & ~0x00000001); extensionType_ = null; if (extensionTypeBuilder_ != null) { extensionTypeBuilder_.dispose(); extensionTypeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Extension.Builder getExtensionTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getExtensionTypeFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder getExtensionTypeOrBuilder() { if (extensionTypeBuilder_ != null) { return extensionTypeBuilder_.getMessageOrBuilder(); } else { return extensionType_ == null ? ai.chalk.protos.chalk.arrow.v1.Extension.getDefaultInstance() : extensionType_; } } /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Extension, ai.chalk.protos.chalk.arrow.v1.Extension.Builder, ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder> getExtensionTypeFieldBuilder() { if (extensionTypeBuilder_ == null) { extensionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Extension, ai.chalk.protos.chalk.arrow.v1.Extension.Builder, ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder>( getExtensionType(), getParentForChildren(), isClean()); extensionType_ = null; } return extensionTypeBuilder_; } private ai.chalk.protos.chalk.arrow.v1.ScalarValue storageValue_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> storageValueBuilder_; /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> * @return Whether the storageValue field is set. */ public boolean hasStorageValue() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> * @return The storageValue. */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue getStorageValue() { if (storageValueBuilder_ == null) { return storageValue_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : storageValue_; } else { return storageValueBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> */ public Builder setStorageValue(ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (storageValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storageValue_ = value; } else { storageValueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> */ public Builder setStorageValue( ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder builderForValue) { if (storageValueBuilder_ == null) { storageValue_ = builderForValue.build(); } else { storageValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> */ public Builder mergeStorageValue(ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (storageValueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && storageValue_ != null && storageValue_ != ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()) { getStorageValueBuilder().mergeFrom(value); } else { storageValue_ = value; } } else { storageValueBuilder_.mergeFrom(value); } if (storageValue_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> */ public Builder clearStorageValue() { bitField0_ = (bitField0_ & ~0x00000002); storageValue_ = null; if (storageValueBuilder_ != null) { storageValueBuilder_.dispose(); storageValueBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder getStorageValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStorageValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getStorageValueOrBuilder() { if (storageValueBuilder_ != null) { return storageValueBuilder_.getMessageOrBuilder(); } else { return storageValue_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : storageValue_; } } /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> getStorageValueFieldBuilder() { if (storageValueBuilder_ == null) { storageValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder>( getStorageValue(), getParentForChildren(), isClean()); storageValue_ = null; } return storageValueBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.ExtensionValue) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.ExtensionValue) private static final ai.chalk.protos.chalk.arrow.v1.ExtensionValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.ExtensionValue(); } public static ai.chalk.protos.chalk.arrow.v1.ExtensionValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ExtensionValue> PARSER = new com.google.protobuf.AbstractParser<ExtensionValue>() { @java.lang.Override public ExtensionValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<ExtensionValue> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ExtensionValue> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ExtensionValueOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ExtensionValueOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.ExtensionValue) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> * @return Whether the extensionType field is set. */ boolean hasExtensionType(); /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> * @return The extensionType. */ ai.chalk.protos.chalk.arrow.v1.Extension getExtensionType(); /** * <code>.chalk.arrow.v1.Extension extension_type = 1 [json_name = "extensionType"];</code> */ ai.chalk.protos.chalk.arrow.v1.ExtensionOrBuilder getExtensionTypeOrBuilder(); /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> * @return Whether the storageValue field is set. */ boolean hasStorageValue(); /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> * @return The storageValue. */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getStorageValue(); /** * <code>.chalk.arrow.v1.ScalarValue storage_value = 2 [json_name = "storageValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getStorageValueOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/FeatherCompression.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf enum {@code chalk.arrow.v1.FeatherCompression} */ public enum FeatherCompression implements com.google.protobuf.ProtocolMessageEnum { /** * <code>FEATHER_COMPRESSION_UNSPECIFIED = 0;</code> */ FEATHER_COMPRESSION_UNSPECIFIED(0), /** * <code>FEATHER_COMPRESSION_UNCOMPRESSED = 1;</code> */ FEATHER_COMPRESSION_UNCOMPRESSED(1), /** * <code>FEATHER_COMPRESSION_LZ4 = 2;</code> */ FEATHER_COMPRESSION_LZ4(2), /** * <code>FEATHER_COMPRESSION_ZSTD = 3;</code> */ FEATHER_COMPRESSION_ZSTD(3), UNRECOGNIZED(-1), ; /** * <code>FEATHER_COMPRESSION_UNSPECIFIED = 0;</code> */ public static final int FEATHER_COMPRESSION_UNSPECIFIED_VALUE = 0; /** * <code>FEATHER_COMPRESSION_UNCOMPRESSED = 1;</code> */ public static final int FEATHER_COMPRESSION_UNCOMPRESSED_VALUE = 1; /** * <code>FEATHER_COMPRESSION_LZ4 = 2;</code> */ public static final int FEATHER_COMPRESSION_LZ4_VALUE = 2; /** * <code>FEATHER_COMPRESSION_ZSTD = 3;</code> */ public static final int FEATHER_COMPRESSION_ZSTD_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; } /** * @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 FeatherCompression 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 FeatherCompression forNumber(int value) { switch (value) { case 0: return FEATHER_COMPRESSION_UNSPECIFIED; case 1: return FEATHER_COMPRESSION_UNCOMPRESSED; case 2: return FEATHER_COMPRESSION_LZ4; case 3: return FEATHER_COMPRESSION_ZSTD; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<FeatherCompression> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FeatherCompression> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<FeatherCompression>() { public FeatherCompression findValueByNumber(int number) { return FeatherCompression.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 ai.chalk.protos.chalk.arrow.v1.ArrowProto.getDescriptor().getEnumTypes().get(1); } private static final FeatherCompression[] VALUES = values(); public static FeatherCompression 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 FeatherCompression(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.arrow.v1.FeatherCompression) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/Field.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.Field} */ public final class Field extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.Field) FieldOrBuilder { private static final long serialVersionUID = 0L; // Use Field.newBuilder() to construct. private Field(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Field() { name_ = ""; children_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Field(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Field_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 5: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Field_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Field.class, ai.chalk.protos.chalk.arrow.v1.Field.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * <code>string name = 1 [json_name = "name"];</code> * @return The name. */ @java.lang.Override 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; } } /** * <code>string name = 1 [json_name = "name"];</code> * @return The bytes for name. */ @java.lang.Override 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 ARROW_TYPE_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ @java.lang.Override public boolean hasArrowType() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } public static final int NULLABLE_FIELD_NUMBER = 3; private boolean nullable_ = false; /** * <code>bool nullable = 3 [json_name = "nullable"];</code> * @return The nullable. */ @java.lang.Override public boolean getNullable() { return nullable_; } public static final int CHILDREN_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> children_; /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getChildrenList() { return children_; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getChildrenOrBuilderList() { return children_; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ @java.lang.Override public int getChildrenCount() { return children_.size(); } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getChildren(int index) { return children_.get(index); } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getChildrenOrBuilder( int index) { return children_.get(index); } public static final int METADATA_FIELD_NUMBER = 5; private static final class MetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, java.lang.String>newDefaultInstance( ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Field_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMetadata() { return getMetadataMap(); } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() { return internalGetMetadata().getMap(); } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ @java.lang.Override public /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getArrowType()); } if (nullable_ != false) { output.writeBool(3, nullable_); } for (int i = 0; i < children_.size(); i++) { output.writeMessage(4, children_.get(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getArrowType()); } if (nullable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, nullable_); } for (int i = 0; i < children_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, children_.get(i)); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, metadata__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.Field)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.Field other = (ai.chalk.protos.chalk.arrow.v1.Field) obj; if (!getName() .equals(other.getName())) return false; if (hasArrowType() != other.hasArrowType()) return false; if (hasArrowType()) { if (!getArrowType() .equals(other.getArrowType())) return false; } if (getNullable() != other.getNullable()) return false; if (!getChildrenList() .equals(other.getChildrenList())) return false; if (!internalGetMetadata().equals( other.internalGetMetadata())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasArrowType()) { hash = (37 * hash) + ARROW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getArrowType().hashCode(); } hash = (37 * hash) + NULLABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNullable()); if (getChildrenCount() > 0) { hash = (37 * hash) + CHILDREN_FIELD_NUMBER; hash = (53 * hash) + getChildrenList().hashCode(); } if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.Field parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Field parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Field parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Field parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Field parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Field parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Field parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Field 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 ai.chalk.protos.chalk.arrow.v1.Field parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Field 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 ai.chalk.protos.chalk.arrow.v1.Field parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Field 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(ai.chalk.protos.chalk.arrow.v1.Field 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; } /** * Protobuf type {@code chalk.arrow.v1.Field} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.Field) ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Field_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 5: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 5: return internalGetMutableMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Field_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Field.class, ai.chalk.protos.chalk.arrow.v1.Field.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.Field.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArrowTypeFieldBuilder(); getChildrenFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } nullable_ = false; if (childrenBuilder_ == null) { children_ = java.util.Collections.emptyList(); } else { children_ = null; childrenBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableMetadata().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Field_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field build() { ai.chalk.protos.chalk.arrow.v1.Field result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field buildPartial() { ai.chalk.protos.chalk.arrow.v1.Field result = new ai.chalk.protos.chalk.arrow.v1.Field(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.arrow.v1.Field result) { if (childrenBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { children_ = java.util.Collections.unmodifiableList(children_); bitField0_ = (bitField0_ & ~0x00000008); } result.children_ = children_; } else { result.children_ = childrenBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.Field result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.arrowType_ = arrowTypeBuilder_ == null ? arrowType_ : arrowTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nullable_ = nullable_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.Field) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.Field)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.Field other) { if (other == ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasArrowType()) { mergeArrowType(other.getArrowType()); } if (other.getNullable() != false) { setNullable(other.getNullable()); } if (childrenBuilder_ == null) { if (!other.children_.isEmpty()) { if (children_.isEmpty()) { children_ = other.children_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureChildrenIsMutable(); children_.addAll(other.children_); } onChanged(); } } else { if (!other.children_.isEmpty()) { if (childrenBuilder_.isEmpty()) { childrenBuilder_.dispose(); childrenBuilder_ = null; children_ = other.children_; bitField0_ = (bitField0_ & ~0x00000008); childrenBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChildrenFieldBuilder() : null; } else { childrenBuilder_.addAllMessages(other.children_); } } } internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getArrowTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { nullable_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { ai.chalk.protos.chalk.arrow.v1.Field m = input.readMessage( ai.chalk.protos.chalk.arrow.v1.Field.parser(), extensionRegistry); if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.add(m); } else { childrenBuilder_.addMessage(m); } break; } // case 34 case 42: { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata__ = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMetadata().getMutableMap().put( metadata__.getKey(), metadata__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * <code>string name = 1 [json_name = "name"];</code> * @return The name. */ 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; } } /** * <code>string name = 1 [json_name = "name"];</code> * @return The bytes for name. */ 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; } } /** * <code>string name = 1 [json_name = "name"];</code> * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string name = 1 [json_name = "name"];</code> * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string name = 1 [json_name = "name"];</code> * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> arrowTypeBuilder_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ public boolean hasArrowType() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { if (arrowTypeBuilder_ == null) { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } else { return arrowTypeBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder setArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowType_ = value; } else { arrowTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder setArrowType( ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder builderForValue) { if (arrowTypeBuilder_ == null) { arrowType_ = builderForValue.build(); } else { arrowTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder mergeArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && arrowType_ != null && arrowType_ != ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) { getArrowTypeBuilder().mergeFrom(value); } else { arrowType_ = value; } } else { arrowTypeBuilder_.mergeFrom(value); } if (arrowType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder clearArrowType() { bitField0_ = (bitField0_ & ~0x00000002); arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder getArrowTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getArrowTypeFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { if (arrowTypeBuilder_ != null) { return arrowTypeBuilder_.getMessageOrBuilder(); } else { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> getArrowTypeFieldBuilder() { if (arrowTypeBuilder_ == null) { arrowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder>( getArrowType(), getParentForChildren(), isClean()); arrowType_ = null; } return arrowTypeBuilder_; } private boolean nullable_ ; /** * <code>bool nullable = 3 [json_name = "nullable"];</code> * @return The nullable. */ @java.lang.Override public boolean getNullable() { return nullable_; } /** * <code>bool nullable = 3 [json_name = "nullable"];</code> * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { nullable_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>bool nullable = 3 [json_name = "nullable"];</code> * @return This builder for chaining. */ public Builder clearNullable() { bitField0_ = (bitField0_ & ~0x00000004); nullable_ = false; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> children_ = java.util.Collections.emptyList(); private void ensureChildrenIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { children_ = new java.util.ArrayList<ai.chalk.protos.chalk.arrow.v1.Field>(children_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> childrenBuilder_; /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getChildrenList() { if (childrenBuilder_ == null) { return java.util.Collections.unmodifiableList(children_); } else { return childrenBuilder_.getMessageList(); } } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public int getChildrenCount() { if (childrenBuilder_ == null) { return children_.size(); } else { return childrenBuilder_.getCount(); } } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field getChildren(int index) { if (childrenBuilder_ == null) { return children_.get(index); } else { return childrenBuilder_.getMessage(index); } } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public Builder setChildren( int index, ai.chalk.protos.chalk.arrow.v1.Field value) { if (childrenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.set(index, value); onChanged(); } else { childrenBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public Builder setChildren( int index, ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.set(index, builderForValue.build()); onChanged(); } else { childrenBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public Builder addChildren(ai.chalk.protos.chalk.arrow.v1.Field value) { if (childrenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.add(value); onChanged(); } else { childrenBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public Builder addChildren( int index, ai.chalk.protos.chalk.arrow.v1.Field value) { if (childrenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.add(index, value); onChanged(); } else { childrenBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public Builder addChildren( ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.add(builderForValue.build()); onChanged(); } else { childrenBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public Builder addChildren( int index, ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.add(index, builderForValue.build()); onChanged(); } else { childrenBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public Builder addAllChildren( java.lang.Iterable<? extends ai.chalk.protos.chalk.arrow.v1.Field> values) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, children_); onChanged(); } else { childrenBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public Builder clearChildren() { if (childrenBuilder_ == null) { children_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { childrenBuilder_.clear(); } return this; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public Builder removeChildren(int index) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.remove(index); onChanged(); } else { childrenBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder getChildrenBuilder( int index) { return getChildrenFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getChildrenOrBuilder( int index) { if (childrenBuilder_ == null) { return children_.get(index); } else { return childrenBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getChildrenOrBuilderList() { if (childrenBuilder_ != null) { return childrenBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(children_); } } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder addChildrenBuilder() { return getChildrenFieldBuilder().addBuilder( ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder addChildrenBuilder( int index) { return getChildrenFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field.Builder> getChildrenBuilderList() { return getChildrenFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getChildrenFieldBuilder() { if (childrenBuilder_ == null) { childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder>( children_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); children_ = null; } return childrenBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableMetadata() { if (metadata_ == null) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } bitField0_ |= 0x00000010; onChanged(); return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMetadata() { return getMetadataMap(); } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() { return internalGetMetadata().getMap(); } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ @java.lang.Override public /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableMetadata().getMutableMap() .clear(); return this; } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMetadata().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMutableMetadata() { bitField0_ |= 0x00000010; return internalGetMutableMetadata().getMutableMap(); } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ public Builder putMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ public Builder putAllMetadata( java.util.Map<java.lang.String, java.lang.String> values) { internalGetMutableMetadata().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.Field) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.Field) private static final ai.chalk.protos.chalk.arrow.v1.Field DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.Field(); } public static ai.chalk.protos.chalk.arrow.v1.Field getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Field> PARSER = new com.google.protobuf.AbstractParser<Field>() { @java.lang.Override public Field parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<Field> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Field> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/FieldOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface FieldOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.Field) com.google.protobuf.MessageOrBuilder { /** * <code>string name = 1 [json_name = "name"];</code> * @return The name. */ java.lang.String getName(); /** * <code>string name = 1 [json_name = "name"];</code> * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ boolean hasArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder(); /** * <code>bool nullable = 3 [json_name = "nullable"];</code> * @return The nullable. */ boolean getNullable(); /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getChildrenList(); /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ ai.chalk.protos.chalk.arrow.v1.Field getChildren(int index); /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ int getChildrenCount(); /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getChildrenOrBuilderList(); /** * <code>repeated .chalk.arrow.v1.Field children = 4 [json_name = "children"];</code> */ ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getChildrenOrBuilder( int index); /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ int getMetadataCount(); /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, java.lang.String> getMetadata(); /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ java.util.Map<java.lang.String, java.lang.String> getMetadataMap(); /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * <code>map&lt;string, string&gt; metadata = 5 [json_name = "metadata"];</code> */ java.lang.String getMetadataOrThrow( java.lang.String key); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/FixedSizeBinary.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.FixedSizeBinary} */ public final class FixedSizeBinary extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.FixedSizeBinary) FixedSizeBinaryOrBuilder { private static final long serialVersionUID = 0L; // Use FixedSizeBinary.newBuilder() to construct. private FixedSizeBinary(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private FixedSizeBinary() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FixedSizeBinary(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeBinary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeBinary_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary.class, ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary.Builder.class); } public static final int LENGTH_FIELD_NUMBER = 1; private int length_ = 0; /** * <code>int32 length = 1 [json_name = "length"];</code> * @return The length. */ @java.lang.Override public int getLength() { return length_; } 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 (length_ != 0) { output.writeInt32(1, length_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (length_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, length_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary other = (ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary) obj; if (getLength() != other.getLength()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LENGTH_FIELD_NUMBER; hash = (53 * hash) + getLength(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary 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 ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary 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 ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary 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(ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary 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; } /** * Protobuf type {@code chalk.arrow.v1.FixedSizeBinary} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.FixedSizeBinary) ai.chalk.protos.chalk.arrow.v1.FixedSizeBinaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeBinary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeBinary_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary.class, ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; length_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeBinary_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary build() { ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary buildPartial() { ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary result = new ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.length_ = length_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary other) { if (other == ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary.getDefaultInstance()) return this; if (other.getLength() != 0) { setLength(other.getLength()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { length_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int length_ ; /** * <code>int32 length = 1 [json_name = "length"];</code> * @return The length. */ @java.lang.Override public int getLength() { return length_; } /** * <code>int32 length = 1 [json_name = "length"];</code> * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { length_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>int32 length = 1 [json_name = "length"];</code> * @return This builder for chaining. */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000001); length_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.FixedSizeBinary) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.FixedSizeBinary) private static final ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary(); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<FixedSizeBinary> PARSER = new com.google.protobuf.AbstractParser<FixedSizeBinary>() { @java.lang.Override public FixedSizeBinary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<FixedSizeBinary> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<FixedSizeBinary> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeBinary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/FixedSizeBinaryOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface FixedSizeBinaryOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.FixedSizeBinary) com.google.protobuf.MessageOrBuilder { /** * <code>int32 length = 1 [json_name = "length"];</code> * @return The length. */ int getLength(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/FixedSizeList.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.FixedSizeList} */ public final class FixedSizeList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.FixedSizeList) FixedSizeListOrBuilder { private static final long serialVersionUID = 0L; // Use FixedSizeList.newBuilder() to construct. private FixedSizeList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private FixedSizeList() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FixedSizeList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeList_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.FixedSizeList.class, ai.chalk.protos.chalk.arrow.v1.FixedSizeList.Builder.class); } private int bitField0_; public static final int FIELD_TYPE_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.arrow.v1.Field fieldType_; /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return Whether the fieldType field is set. */ @java.lang.Override public boolean hasFieldType() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return The fieldType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getFieldType() { return fieldType_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : fieldType_; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getFieldTypeOrBuilder() { return fieldType_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : fieldType_; } public static final int LIST_SIZE_FIELD_NUMBER = 2; private int listSize_ = 0; /** * <code>int32 list_size = 2 [json_name = "listSize"];</code> * @return The listSize. */ @java.lang.Override public int getListSize() { return listSize_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getFieldType()); } if (listSize_ != 0) { output.writeInt32(2, listSize_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFieldType()); } if (listSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, listSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.FixedSizeList)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.FixedSizeList other = (ai.chalk.protos.chalk.arrow.v1.FixedSizeList) obj; if (hasFieldType() != other.hasFieldType()) return false; if (hasFieldType()) { if (!getFieldType() .equals(other.getFieldType())) return false; } if (getListSize() != other.getListSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFieldType()) { hash = (37 * hash) + FIELD_TYPE_FIELD_NUMBER; hash = (53 * hash) + getFieldType().hashCode(); } hash = (37 * hash) + LIST_SIZE_FIELD_NUMBER; hash = (53 * hash) + getListSize(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList 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 ai.chalk.protos.chalk.arrow.v1.FixedSizeList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList 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 ai.chalk.protos.chalk.arrow.v1.FixedSizeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList 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(ai.chalk.protos.chalk.arrow.v1.FixedSizeList 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; } /** * Protobuf type {@code chalk.arrow.v1.FixedSizeList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.FixedSizeList) ai.chalk.protos.chalk.arrow.v1.FixedSizeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeList_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.FixedSizeList.class, ai.chalk.protos.chalk.arrow.v1.FixedSizeList.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.FixedSizeList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fieldType_ = null; if (fieldTypeBuilder_ != null) { fieldTypeBuilder_.dispose(); fieldTypeBuilder_ = null; } listSize_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_FixedSizeList_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeList getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.FixedSizeList.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeList build() { ai.chalk.protos.chalk.arrow.v1.FixedSizeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeList buildPartial() { ai.chalk.protos.chalk.arrow.v1.FixedSizeList result = new ai.chalk.protos.chalk.arrow.v1.FixedSizeList(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.FixedSizeList result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldType_ = fieldTypeBuilder_ == null ? fieldType_ : fieldTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.listSize_ = listSize_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.FixedSizeList) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.FixedSizeList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.FixedSizeList other) { if (other == ai.chalk.protos.chalk.arrow.v1.FixedSizeList.getDefaultInstance()) return this; if (other.hasFieldType()) { mergeFieldType(other.getFieldType()); } if (other.getListSize() != 0) { setListSize(other.getListSize()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getFieldTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { listSize_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private ai.chalk.protos.chalk.arrow.v1.Field fieldType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> fieldTypeBuilder_; /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return Whether the fieldType field is set. */ public boolean hasFieldType() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return The fieldType. */ public ai.chalk.protos.chalk.arrow.v1.Field getFieldType() { if (fieldTypeBuilder_ == null) { return fieldType_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : fieldType_; } else { return fieldTypeBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public Builder setFieldType(ai.chalk.protos.chalk.arrow.v1.Field value) { if (fieldTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldType_ = value; } else { fieldTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public Builder setFieldType( ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (fieldTypeBuilder_ == null) { fieldType_ = builderForValue.build(); } else { fieldTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public Builder mergeFieldType(ai.chalk.protos.chalk.arrow.v1.Field value) { if (fieldTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && fieldType_ != null && fieldType_ != ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()) { getFieldTypeBuilder().mergeFrom(value); } else { fieldType_ = value; } } else { fieldTypeBuilder_.mergeFrom(value); } if (fieldType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public Builder clearFieldType() { bitField0_ = (bitField0_ & ~0x00000001); fieldType_ = null; if (fieldTypeBuilder_ != null) { fieldTypeBuilder_.dispose(); fieldTypeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder getFieldTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFieldTypeFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getFieldTypeOrBuilder() { if (fieldTypeBuilder_ != null) { return fieldTypeBuilder_.getMessageOrBuilder(); } else { return fieldType_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : fieldType_; } } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getFieldTypeFieldBuilder() { if (fieldTypeBuilder_ == null) { fieldTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder>( getFieldType(), getParentForChildren(), isClean()); fieldType_ = null; } return fieldTypeBuilder_; } private int listSize_ ; /** * <code>int32 list_size = 2 [json_name = "listSize"];</code> * @return The listSize. */ @java.lang.Override public int getListSize() { return listSize_; } /** * <code>int32 list_size = 2 [json_name = "listSize"];</code> * @param value The listSize to set. * @return This builder for chaining. */ public Builder setListSize(int value) { listSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>int32 list_size = 2 [json_name = "listSize"];</code> * @return This builder for chaining. */ public Builder clearListSize() { bitField0_ = (bitField0_ & ~0x00000002); listSize_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.FixedSizeList) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.FixedSizeList) private static final ai.chalk.protos.chalk.arrow.v1.FixedSizeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.FixedSizeList(); } public static ai.chalk.protos.chalk.arrow.v1.FixedSizeList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<FixedSizeList> PARSER = new com.google.protobuf.AbstractParser<FixedSizeList>() { @java.lang.Override public FixedSizeList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<FixedSizeList> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<FixedSizeList> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FixedSizeList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/FixedSizeListOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface FixedSizeListOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.FixedSizeList) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return Whether the fieldType field is set. */ boolean hasFieldType(); /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return The fieldType. */ ai.chalk.protos.chalk.arrow.v1.Field getFieldType(); /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getFieldTypeOrBuilder(); /** * <code>int32 list_size = 2 [json_name = "listSize"];</code> * @return The listSize. */ int getListSize(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/List.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.List} */ public final class List extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.List) ListOrBuilder { private static final long serialVersionUID = 0L; // Use List.newBuilder() to construct. private List(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private List() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new List(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_List_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_List_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.List.class, ai.chalk.protos.chalk.arrow.v1.List.Builder.class); } private int bitField0_; public static final int FIELD_TYPE_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.arrow.v1.Field fieldType_; /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return Whether the fieldType field is set. */ @java.lang.Override public boolean hasFieldType() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return The fieldType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getFieldType() { return fieldType_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : fieldType_; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getFieldTypeOrBuilder() { return fieldType_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : fieldType_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getFieldType()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFieldType()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.List)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.List other = (ai.chalk.protos.chalk.arrow.v1.List) obj; if (hasFieldType() != other.hasFieldType()) return false; if (hasFieldType()) { if (!getFieldType() .equals(other.getFieldType())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFieldType()) { hash = (37 * hash) + FIELD_TYPE_FIELD_NUMBER; hash = (53 * hash) + getFieldType().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.List parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.List parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.List parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.List parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.List parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.List parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.List parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.List 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 ai.chalk.protos.chalk.arrow.v1.List parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.List 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 ai.chalk.protos.chalk.arrow.v1.List parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.List 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(ai.chalk.protos.chalk.arrow.v1.List 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; } /** * Protobuf type {@code chalk.arrow.v1.List} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.List) ai.chalk.protos.chalk.arrow.v1.ListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_List_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_List_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.List.class, ai.chalk.protos.chalk.arrow.v1.List.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.List.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFieldTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fieldType_ = null; if (fieldTypeBuilder_ != null) { fieldTypeBuilder_.dispose(); fieldTypeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_List_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.List getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.List build() { ai.chalk.protos.chalk.arrow.v1.List result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.List buildPartial() { ai.chalk.protos.chalk.arrow.v1.List result = new ai.chalk.protos.chalk.arrow.v1.List(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.List result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldType_ = fieldTypeBuilder_ == null ? fieldType_ : fieldTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.List) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.List)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.List other) { if (other == ai.chalk.protos.chalk.arrow.v1.List.getDefaultInstance()) return this; if (other.hasFieldType()) { mergeFieldType(other.getFieldType()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getFieldTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private ai.chalk.protos.chalk.arrow.v1.Field fieldType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> fieldTypeBuilder_; /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return Whether the fieldType field is set. */ public boolean hasFieldType() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return The fieldType. */ public ai.chalk.protos.chalk.arrow.v1.Field getFieldType() { if (fieldTypeBuilder_ == null) { return fieldType_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : fieldType_; } else { return fieldTypeBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public Builder setFieldType(ai.chalk.protos.chalk.arrow.v1.Field value) { if (fieldTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldType_ = value; } else { fieldTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public Builder setFieldType( ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (fieldTypeBuilder_ == null) { fieldType_ = builderForValue.build(); } else { fieldTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public Builder mergeFieldType(ai.chalk.protos.chalk.arrow.v1.Field value) { if (fieldTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && fieldType_ != null && fieldType_ != ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()) { getFieldTypeBuilder().mergeFrom(value); } else { fieldType_ = value; } } else { fieldTypeBuilder_.mergeFrom(value); } if (fieldType_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public Builder clearFieldType() { bitField0_ = (bitField0_ & ~0x00000001); fieldType_ = null; if (fieldTypeBuilder_ != null) { fieldTypeBuilder_.dispose(); fieldTypeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder getFieldTypeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFieldTypeFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getFieldTypeOrBuilder() { if (fieldTypeBuilder_ != null) { return fieldTypeBuilder_.getMessageOrBuilder(); } else { return fieldType_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : fieldType_; } } /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getFieldTypeFieldBuilder() { if (fieldTypeBuilder_ == null) { fieldTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder>( getFieldType(), getParentForChildren(), isClean()); fieldType_ = null; } return fieldTypeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.List) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.List) private static final ai.chalk.protos.chalk.arrow.v1.List DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.List(); } public static ai.chalk.protos.chalk.arrow.v1.List getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<List> PARSER = new com.google.protobuf.AbstractParser<List>() { @java.lang.Override public List parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<List> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<List> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.List getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ListOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ListOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.List) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return Whether the fieldType field is set. */ boolean hasFieldType(); /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> * @return The fieldType. */ ai.chalk.protos.chalk.arrow.v1.Field getFieldType(); /** * <code>.chalk.arrow.v1.Field field_type = 1 [json_name = "fieldType"];</code> */ ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getFieldTypeOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/Map.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.Map} */ public final class Map extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.Map) MapOrBuilder { private static final long serialVersionUID = 0L; // Use Map.newBuilder() to construct. private Map(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Map() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Map(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Map_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Map.class, ai.chalk.protos.chalk.arrow.v1.Map.Builder.class); } private int bitField0_; public static final int KEY_FIELD_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.arrow.v1.Field keyField_; /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> * @return Whether the keyField field is set. */ @java.lang.Override public boolean hasKeyField() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> * @return The keyField. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getKeyField() { return keyField_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : keyField_; } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getKeyFieldOrBuilder() { return keyField_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : keyField_; } public static final int ITEM_FIELD_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.arrow.v1.Field itemField_; /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> * @return Whether the itemField field is set. */ @java.lang.Override public boolean hasItemField() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> * @return The itemField. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getItemField() { return itemField_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : itemField_; } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getItemFieldOrBuilder() { return itemField_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : itemField_; } public static final int KEYS_SORTED_FIELD_NUMBER = 3; private boolean keysSorted_ = false; /** * <code>bool keys_sorted = 3 [json_name = "keysSorted"];</code> * @return The keysSorted. */ @java.lang.Override public boolean getKeysSorted() { return keysSorted_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getKeyField()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getItemField()); } if (keysSorted_ != false) { output.writeBool(3, keysSorted_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getKeyField()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getItemField()); } if (keysSorted_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, keysSorted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.Map)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.Map other = (ai.chalk.protos.chalk.arrow.v1.Map) obj; if (hasKeyField() != other.hasKeyField()) return false; if (hasKeyField()) { if (!getKeyField() .equals(other.getKeyField())) return false; } if (hasItemField() != other.hasItemField()) return false; if (hasItemField()) { if (!getItemField() .equals(other.getItemField())) return false; } if (getKeysSorted() != other.getKeysSorted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKeyField()) { hash = (37 * hash) + KEY_FIELD_FIELD_NUMBER; hash = (53 * hash) + getKeyField().hashCode(); } if (hasItemField()) { hash = (37 * hash) + ITEM_FIELD_FIELD_NUMBER; hash = (53 * hash) + getItemField().hashCode(); } hash = (37 * hash) + KEYS_SORTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeysSorted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.Map parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Map parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Map parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Map parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Map parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Map parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Map parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Map 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 ai.chalk.protos.chalk.arrow.v1.Map parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Map 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 ai.chalk.protos.chalk.arrow.v1.Map parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Map 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(ai.chalk.protos.chalk.arrow.v1.Map 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; } /** * Protobuf type {@code chalk.arrow.v1.Map} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.Map) ai.chalk.protos.chalk.arrow.v1.MapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Map_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Map_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Map.class, ai.chalk.protos.chalk.arrow.v1.Map.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.Map.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeyFieldFieldBuilder(); getItemFieldFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; keyField_ = null; if (keyFieldBuilder_ != null) { keyFieldBuilder_.dispose(); keyFieldBuilder_ = null; } itemField_ = null; if (itemFieldBuilder_ != null) { itemFieldBuilder_.dispose(); itemFieldBuilder_ = null; } keysSorted_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Map_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Map getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.Map.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Map build() { ai.chalk.protos.chalk.arrow.v1.Map result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Map buildPartial() { ai.chalk.protos.chalk.arrow.v1.Map result = new ai.chalk.protos.chalk.arrow.v1.Map(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.Map result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.keyField_ = keyFieldBuilder_ == null ? keyField_ : keyFieldBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.itemField_ = itemFieldBuilder_ == null ? itemField_ : itemFieldBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.keysSorted_ = keysSorted_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.Map) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.Map)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.Map other) { if (other == ai.chalk.protos.chalk.arrow.v1.Map.getDefaultInstance()) return this; if (other.hasKeyField()) { mergeKeyField(other.getKeyField()); } if (other.hasItemField()) { mergeItemField(other.getItemField()); } if (other.getKeysSorted() != false) { setKeysSorted(other.getKeysSorted()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getKeyFieldFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getItemFieldFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { keysSorted_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private ai.chalk.protos.chalk.arrow.v1.Field keyField_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> keyFieldBuilder_; /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> * @return Whether the keyField field is set. */ public boolean hasKeyField() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> * @return The keyField. */ public ai.chalk.protos.chalk.arrow.v1.Field getKeyField() { if (keyFieldBuilder_ == null) { return keyField_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : keyField_; } else { return keyFieldBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> */ public Builder setKeyField(ai.chalk.protos.chalk.arrow.v1.Field value) { if (keyFieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyField_ = value; } else { keyFieldBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> */ public Builder setKeyField( ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (keyFieldBuilder_ == null) { keyField_ = builderForValue.build(); } else { keyFieldBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> */ public Builder mergeKeyField(ai.chalk.protos.chalk.arrow.v1.Field value) { if (keyFieldBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && keyField_ != null && keyField_ != ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()) { getKeyFieldBuilder().mergeFrom(value); } else { keyField_ = value; } } else { keyFieldBuilder_.mergeFrom(value); } if (keyField_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> */ public Builder clearKeyField() { bitField0_ = (bitField0_ & ~0x00000001); keyField_ = null; if (keyFieldBuilder_ != null) { keyFieldBuilder_.dispose(); keyFieldBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder getKeyFieldBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeyFieldFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> */ public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getKeyFieldOrBuilder() { if (keyFieldBuilder_ != null) { return keyFieldBuilder_.getMessageOrBuilder(); } else { return keyField_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : keyField_; } } /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getKeyFieldFieldBuilder() { if (keyFieldBuilder_ == null) { keyFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder>( getKeyField(), getParentForChildren(), isClean()); keyField_ = null; } return keyFieldBuilder_; } private ai.chalk.protos.chalk.arrow.v1.Field itemField_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> itemFieldBuilder_; /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> * @return Whether the itemField field is set. */ public boolean hasItemField() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> * @return The itemField. */ public ai.chalk.protos.chalk.arrow.v1.Field getItemField() { if (itemFieldBuilder_ == null) { return itemField_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : itemField_; } else { return itemFieldBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> */ public Builder setItemField(ai.chalk.protos.chalk.arrow.v1.Field value) { if (itemFieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } itemField_ = value; } else { itemFieldBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> */ public Builder setItemField( ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (itemFieldBuilder_ == null) { itemField_ = builderForValue.build(); } else { itemFieldBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> */ public Builder mergeItemField(ai.chalk.protos.chalk.arrow.v1.Field value) { if (itemFieldBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && itemField_ != null && itemField_ != ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()) { getItemFieldBuilder().mergeFrom(value); } else { itemField_ = value; } } else { itemFieldBuilder_.mergeFrom(value); } if (itemField_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> */ public Builder clearItemField() { bitField0_ = (bitField0_ & ~0x00000002); itemField_ = null; if (itemFieldBuilder_ != null) { itemFieldBuilder_.dispose(); itemFieldBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder getItemFieldBuilder() { bitField0_ |= 0x00000002; onChanged(); return getItemFieldFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> */ public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getItemFieldOrBuilder() { if (itemFieldBuilder_ != null) { return itemFieldBuilder_.getMessageOrBuilder(); } else { return itemField_ == null ? ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance() : itemField_; } } /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getItemFieldFieldBuilder() { if (itemFieldBuilder_ == null) { itemFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder>( getItemField(), getParentForChildren(), isClean()); itemField_ = null; } return itemFieldBuilder_; } private boolean keysSorted_ ; /** * <code>bool keys_sorted = 3 [json_name = "keysSorted"];</code> * @return The keysSorted. */ @java.lang.Override public boolean getKeysSorted() { return keysSorted_; } /** * <code>bool keys_sorted = 3 [json_name = "keysSorted"];</code> * @param value The keysSorted to set. * @return This builder for chaining. */ public Builder setKeysSorted(boolean value) { keysSorted_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>bool keys_sorted = 3 [json_name = "keysSorted"];</code> * @return This builder for chaining. */ public Builder clearKeysSorted() { bitField0_ = (bitField0_ & ~0x00000004); keysSorted_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.Map) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.Map) private static final ai.chalk.protos.chalk.arrow.v1.Map DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.Map(); } public static ai.chalk.protos.chalk.arrow.v1.Map getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Map> PARSER = new com.google.protobuf.AbstractParser<Map>() { @java.lang.Override public Map parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<Map> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Map> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Map getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/MapOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface MapOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.Map) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> * @return Whether the keyField field is set. */ boolean hasKeyField(); /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> * @return The keyField. */ ai.chalk.protos.chalk.arrow.v1.Field getKeyField(); /** * <code>.chalk.arrow.v1.Field key_field = 1 [json_name = "keyField"];</code> */ ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getKeyFieldOrBuilder(); /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> * @return Whether the itemField field is set. */ boolean hasItemField(); /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> * @return The itemField. */ ai.chalk.protos.chalk.arrow.v1.Field getItemField(); /** * <code>.chalk.arrow.v1.Field item_field = 2 [json_name = "itemField"];</code> */ ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getItemFieldOrBuilder(); /** * <code>bool keys_sorted = 3 [json_name = "keysSorted"];</code> * @return The keysSorted. */ boolean getKeysSorted(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarFixedSizeBinary.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.ScalarFixedSizeBinary} */ public final class ScalarFixedSizeBinary extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.ScalarFixedSizeBinary) ScalarFixedSizeBinaryOrBuilder { private static final long serialVersionUID = 0L; // Use ScalarFixedSizeBinary.newBuilder() to construct. private ScalarFixedSizeBinary(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ScalarFixedSizeBinary() { values_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScalarFixedSizeBinary(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.class, ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.ByteString values_ = com.google.protobuf.ByteString.EMPTY; /** * <code>bytes values = 1 [json_name = "values"];</code> * @return The values. */ @java.lang.Override public com.google.protobuf.ByteString getValues() { return values_; } public static final int LENGTH_FIELD_NUMBER = 2; private int length_ = 0; /** * <code>int32 length = 2 [json_name = "length"];</code> * @return The length. */ @java.lang.Override public int getLength() { return length_; } 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 (!values_.isEmpty()) { output.writeBytes(1, values_); } if (length_ != 0) { output.writeInt32(2, length_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!values_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, values_); } if (length_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, length_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary other = (ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) obj; if (!getValues() .equals(other.getValues())) return false; if (getLength() != other.getLength()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValues().hashCode(); hash = (37 * hash) + LENGTH_FIELD_NUMBER; hash = (53 * hash) + getLength(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary 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 ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary 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 ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary 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(ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary 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; } /** * Protobuf type {@code chalk.arrow.v1.ScalarFixedSizeBinary} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.ScalarFixedSizeBinary) ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.class, ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; values_ = com.google.protobuf.ByteString.EMPTY; length_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarFixedSizeBinary_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary build() { ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary buildPartial() { ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary result = new ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.values_ = values_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.length_ = length_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary other) { if (other == ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.getDefaultInstance()) return this; if (other.getValues() != com.google.protobuf.ByteString.EMPTY) { setValues(other.getValues()); } if (other.getLength() != 0) { setLength(other.getLength()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { values_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { length_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString values_ = com.google.protobuf.ByteString.EMPTY; /** * <code>bytes values = 1 [json_name = "values"];</code> * @return The values. */ @java.lang.Override public com.google.protobuf.ByteString getValues() { return values_; } /** * <code>bytes values = 1 [json_name = "values"];</code> * @param value The values to set. * @return This builder for chaining. */ public Builder setValues(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } values_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>bytes values = 1 [json_name = "values"];</code> * @return This builder for chaining. */ public Builder clearValues() { bitField0_ = (bitField0_ & ~0x00000001); values_ = getDefaultInstance().getValues(); onChanged(); return this; } private int length_ ; /** * <code>int32 length = 2 [json_name = "length"];</code> * @return The length. */ @java.lang.Override public int getLength() { return length_; } /** * <code>int32 length = 2 [json_name = "length"];</code> * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { length_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>int32 length = 2 [json_name = "length"];</code> * @return This builder for chaining. */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000002); length_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.ScalarFixedSizeBinary) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.ScalarFixedSizeBinary) private static final ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary(); } public static ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ScalarFixedSizeBinary> PARSER = new com.google.protobuf.AbstractParser<ScalarFixedSizeBinary>() { @java.lang.Override public ScalarFixedSizeBinary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<ScalarFixedSizeBinary> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ScalarFixedSizeBinary> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarFixedSizeBinaryOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ScalarFixedSizeBinaryOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.ScalarFixedSizeBinary) com.google.protobuf.MessageOrBuilder { /** * <code>bytes values = 1 [json_name = "values"];</code> * @return The values. */ com.google.protobuf.ByteString getValues(); /** * <code>int32 length = 2 [json_name = "length"];</code> * @return The length. */ int getLength(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarListValue.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.ScalarListValue} */ public final class ScalarListValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.ScalarListValue) ScalarListValueOrBuilder { private static final long serialVersionUID = 0L; // Use ScalarListValue.newBuilder() to construct. private ScalarListValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ScalarListValue() { arrowData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScalarListValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarListValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarListValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarListValue.class, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder.class); } private int bitField0_; public static final int ARROW_DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString arrowData_ = com.google.protobuf.ByteString.EMPTY; /** * <code>bytes arrow_data = 1 [json_name = "arrowData"];</code> * @return The arrowData. */ @java.lang.Override public com.google.protobuf.ByteString getArrowData() { return arrowData_; } public static final int SCHEMA_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.arrow.v1.Schema schema_; /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> * @return Whether the schema field is set. */ @java.lang.Override public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> * @return The schema. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Schema getSchema() { return schema_ == null ? ai.chalk.protos.chalk.arrow.v1.Schema.getDefaultInstance() : schema_; } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? ai.chalk.protos.chalk.arrow.v1.Schema.getDefaultInstance() : schema_; } 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 (!arrowData_.isEmpty()) { output.writeBytes(1, arrowData_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!arrowData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, arrowData_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSchema()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.ScalarListValue)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.ScalarListValue other = (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) obj; if (!getArrowData() .equals(other.getArrowData())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { if (!getSchema() .equals(other.getSchema())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ARROW_DATA_FIELD_NUMBER; hash = (53 * hash) + getArrowData().hashCode(); if (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue 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 ai.chalk.protos.chalk.arrow.v1.ScalarListValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue 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 ai.chalk.protos.chalk.arrow.v1.ScalarListValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue 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(ai.chalk.protos.chalk.arrow.v1.ScalarListValue 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; } /** * Protobuf type {@code chalk.arrow.v1.ScalarListValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.ScalarListValue) ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarListValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarListValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarListValue.class, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.ScalarListValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSchemaFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; arrowData_ = com.google.protobuf.ByteString.EMPTY; schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarListValue_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue build() { ai.chalk.protos.chalk.arrow.v1.ScalarListValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue buildPartial() { ai.chalk.protos.chalk.arrow.v1.ScalarListValue result = new ai.chalk.protos.chalk.arrow.v1.ScalarListValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.ScalarListValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.arrowData_ = arrowData_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.ScalarListValue) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.ScalarListValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.ScalarListValue other) { if (other == ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance()) return this; if (other.getArrowData() != com.google.protobuf.ByteString.EMPTY) { setArrowData(other.getArrowData()); } if (other.hasSchema()) { mergeSchema(other.getSchema()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { arrowData_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString arrowData_ = com.google.protobuf.ByteString.EMPTY; /** * <code>bytes arrow_data = 1 [json_name = "arrowData"];</code> * @return The arrowData. */ @java.lang.Override public com.google.protobuf.ByteString getArrowData() { return arrowData_; } /** * <code>bytes arrow_data = 1 [json_name = "arrowData"];</code> * @param value The arrowData to set. * @return This builder for chaining. */ public Builder setArrowData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } arrowData_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>bytes arrow_data = 1 [json_name = "arrowData"];</code> * @return This builder for chaining. */ public Builder clearArrowData() { bitField0_ = (bitField0_ & ~0x00000001); arrowData_ = getDefaultInstance().getArrowData(); onChanged(); return this; } private ai.chalk.protos.chalk.arrow.v1.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Schema, ai.chalk.protos.chalk.arrow.v1.Schema.Builder, ai.chalk.protos.chalk.arrow.v1.SchemaOrBuilder> schemaBuilder_; /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> * @return The schema. */ public ai.chalk.protos.chalk.arrow.v1.Schema getSchema() { if (schemaBuilder_ == null) { return schema_ == null ? ai.chalk.protos.chalk.arrow.v1.Schema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> */ public Builder setSchema(ai.chalk.protos.chalk.arrow.v1.Schema value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> */ public Builder setSchema( ai.chalk.protos.chalk.arrow.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> */ public Builder mergeSchema(ai.chalk.protos.chalk.arrow.v1.Schema value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && schema_ != null && schema_ != ai.chalk.protos.chalk.arrow.v1.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; } } else { schemaBuilder_.mergeFrom(value); } if (schema_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000002); schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> */ public ai.chalk.protos.chalk.arrow.v1.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_ == null ? ai.chalk.protos.chalk.arrow.v1.Schema.getDefaultInstance() : schema_; } } /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Schema, ai.chalk.protos.chalk.arrow.v1.Schema.Builder, ai.chalk.protos.chalk.arrow.v1.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Schema, ai.chalk.protos.chalk.arrow.v1.Schema.Builder, ai.chalk.protos.chalk.arrow.v1.SchemaOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.ScalarListValue) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.ScalarListValue) private static final ai.chalk.protos.chalk.arrow.v1.ScalarListValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.ScalarListValue(); } public static ai.chalk.protos.chalk.arrow.v1.ScalarListValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ScalarListValue> PARSER = new com.google.protobuf.AbstractParser<ScalarListValue>() { @java.lang.Override public ScalarListValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<ScalarListValue> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ScalarListValue> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarListValueOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ScalarListValueOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.ScalarListValue) com.google.protobuf.MessageOrBuilder { /** * <code>bytes arrow_data = 1 [json_name = "arrowData"];</code> * @return The arrowData. */ com.google.protobuf.ByteString getArrowData(); /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> * @return Whether the schema field is set. */ boolean hasSchema(); /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> * @return The schema. */ ai.chalk.protos.chalk.arrow.v1.Schema getSchema(); /** * <code>.chalk.arrow.v1.Schema schema = 2 [json_name = "schema"];</code> */ ai.chalk.protos.chalk.arrow.v1.SchemaOrBuilder getSchemaOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarTime32Value.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.ScalarTime32Value} */ public final class ScalarTime32Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.ScalarTime32Value) ScalarTime32ValueOrBuilder { private static final long serialVersionUID = 0L; // Use ScalarTime32Value.newBuilder() to construct. private ScalarTime32Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ScalarTime32Value() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScalarTime32Value(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime32Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime32Value_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.class, ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.Builder.class); } private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TIME32_SECOND_VALUE(1), TIME32_MILLISECOND_VALUE(2), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return TIME32_SECOND_VALUE; case 2: return TIME32_MILLISECOND_VALUE; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int TIME32_SECOND_VALUE_FIELD_NUMBER = 1; /** * <code>int32 time32_second_value = 1 [json_name = "time32SecondValue"];</code> * @return Whether the time32SecondValue field is set. */ @java.lang.Override public boolean hasTime32SecondValue() { return valueCase_ == 1; } /** * <code>int32 time32_second_value = 1 [json_name = "time32SecondValue"];</code> * @return The time32SecondValue. */ @java.lang.Override public int getTime32SecondValue() { if (valueCase_ == 1) { return (java.lang.Integer) value_; } return 0; } public static final int TIME32_MILLISECOND_VALUE_FIELD_NUMBER = 2; /** * <code>int32 time32_millisecond_value = 2 [json_name = "time32MillisecondValue"];</code> * @return Whether the time32MillisecondValue field is set. */ @java.lang.Override public boolean hasTime32MillisecondValue() { return valueCase_ == 2; } /** * <code>int32 time32_millisecond_value = 2 [json_name = "time32MillisecondValue"];</code> * @return The time32MillisecondValue. */ @java.lang.Override public int getTime32MillisecondValue() { if (valueCase_ == 2) { return (java.lang.Integer) value_; } return 0; } 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 (valueCase_ == 1) { output.writeInt32( 1, (int)((java.lang.Integer) value_)); } if (valueCase_ == 2) { output.writeInt32( 2, (int)((java.lang.Integer) value_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 1, (int)((java.lang.Integer) value_)); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 2, (int)((java.lang.Integer) value_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value other = (ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: if (getTime32SecondValue() != other.getTime32SecondValue()) return false; break; case 2: if (getTime32MillisecondValue() != other.getTime32MillisecondValue()) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (valueCase_) { case 1: hash = (37 * hash) + TIME32_SECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + getTime32SecondValue(); break; case 2: hash = (37 * hash) + TIME32_MILLISECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + getTime32MillisecondValue(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value 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 ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value 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 ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value 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(ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value 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; } /** * Protobuf type {@code chalk.arrow.v1.ScalarTime32Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.ScalarTime32Value) ai.chalk.protos.chalk.arrow.v1.ScalarTime32ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime32Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime32Value_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.class, ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime32Value_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value build() { ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value buildPartial() { ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value result = new ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value result) { result.valueCase_ = valueCase_; result.value_ = this.value_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value other) { if (other == ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.getDefaultInstance()) return this; switch (other.getValueCase()) { case TIME32_SECOND_VALUE: { setTime32SecondValue(other.getTime32SecondValue()); break; } case TIME32_MILLISECOND_VALUE: { setTime32MillisecondValue(other.getTime32MillisecondValue()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { value_ = input.readInt32(); valueCase_ = 1; break; } // case 8 case 16: { value_ = input.readInt32(); valueCase_ = 2; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; /** * <code>int32 time32_second_value = 1 [json_name = "time32SecondValue"];</code> * @return Whether the time32SecondValue field is set. */ public boolean hasTime32SecondValue() { return valueCase_ == 1; } /** * <code>int32 time32_second_value = 1 [json_name = "time32SecondValue"];</code> * @return The time32SecondValue. */ public int getTime32SecondValue() { if (valueCase_ == 1) { return (java.lang.Integer) value_; } return 0; } /** * <code>int32 time32_second_value = 1 [json_name = "time32SecondValue"];</code> * @param value The time32SecondValue to set. * @return This builder for chaining. */ public Builder setTime32SecondValue(int value) { valueCase_ = 1; value_ = value; onChanged(); return this; } /** * <code>int32 time32_second_value = 1 [json_name = "time32SecondValue"];</code> * @return This builder for chaining. */ public Builder clearTime32SecondValue() { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int32 time32_millisecond_value = 2 [json_name = "time32MillisecondValue"];</code> * @return Whether the time32MillisecondValue field is set. */ public boolean hasTime32MillisecondValue() { return valueCase_ == 2; } /** * <code>int32 time32_millisecond_value = 2 [json_name = "time32MillisecondValue"];</code> * @return The time32MillisecondValue. */ public int getTime32MillisecondValue() { if (valueCase_ == 2) { return (java.lang.Integer) value_; } return 0; } /** * <code>int32 time32_millisecond_value = 2 [json_name = "time32MillisecondValue"];</code> * @param value The time32MillisecondValue to set. * @return This builder for chaining. */ public Builder setTime32MillisecondValue(int value) { valueCase_ = 2; value_ = value; onChanged(); return this; } /** * <code>int32 time32_millisecond_value = 2 [json_name = "time32MillisecondValue"];</code> * @return This builder for chaining. */ public Builder clearTime32MillisecondValue() { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.ScalarTime32Value) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.ScalarTime32Value) private static final ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value(); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ScalarTime32Value> PARSER = new com.google.protobuf.AbstractParser<ScalarTime32Value>() { @java.lang.Override public ScalarTime32Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<ScalarTime32Value> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ScalarTime32Value> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarTime32ValueOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ScalarTime32ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.ScalarTime32Value) com.google.protobuf.MessageOrBuilder { /** * <code>int32 time32_second_value = 1 [json_name = "time32SecondValue"];</code> * @return Whether the time32SecondValue field is set. */ boolean hasTime32SecondValue(); /** * <code>int32 time32_second_value = 1 [json_name = "time32SecondValue"];</code> * @return The time32SecondValue. */ int getTime32SecondValue(); /** * <code>int32 time32_millisecond_value = 2 [json_name = "time32MillisecondValue"];</code> * @return Whether the time32MillisecondValue field is set. */ boolean hasTime32MillisecondValue(); /** * <code>int32 time32_millisecond_value = 2 [json_name = "time32MillisecondValue"];</code> * @return The time32MillisecondValue. */ int getTime32MillisecondValue(); ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.ValueCase getValueCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarTime64Value.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.ScalarTime64Value} */ public final class ScalarTime64Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.ScalarTime64Value) ScalarTime64ValueOrBuilder { private static final long serialVersionUID = 0L; // Use ScalarTime64Value.newBuilder() to construct. private ScalarTime64Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ScalarTime64Value() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScalarTime64Value(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime64Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime64Value_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.class, ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.Builder.class); } private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TIME64_MICROSECOND_VALUE(1), TIME64_NANOSECOND_VALUE(2), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return TIME64_MICROSECOND_VALUE; case 2: return TIME64_NANOSECOND_VALUE; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int TIME64_MICROSECOND_VALUE_FIELD_NUMBER = 1; /** * <code>int64 time64_microsecond_value = 1 [json_name = "time64MicrosecondValue"];</code> * @return Whether the time64MicrosecondValue field is set. */ @java.lang.Override public boolean hasTime64MicrosecondValue() { return valueCase_ == 1; } /** * <code>int64 time64_microsecond_value = 1 [json_name = "time64MicrosecondValue"];</code> * @return The time64MicrosecondValue. */ @java.lang.Override public long getTime64MicrosecondValue() { if (valueCase_ == 1) { return (java.lang.Long) value_; } return 0L; } public static final int TIME64_NANOSECOND_VALUE_FIELD_NUMBER = 2; /** * <code>int64 time64_nanosecond_value = 2 [json_name = "time64NanosecondValue"];</code> * @return Whether the time64NanosecondValue field is set. */ @java.lang.Override public boolean hasTime64NanosecondValue() { return valueCase_ == 2; } /** * <code>int64 time64_nanosecond_value = 2 [json_name = "time64NanosecondValue"];</code> * @return The time64NanosecondValue. */ @java.lang.Override public long getTime64NanosecondValue() { if (valueCase_ == 2) { return (java.lang.Long) value_; } return 0L; } 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 (valueCase_ == 1) { output.writeInt64( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { output.writeInt64( 2, (long)((java.lang.Long) value_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 2, (long)((java.lang.Long) value_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value other = (ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: if (getTime64MicrosecondValue() != other.getTime64MicrosecondValue()) return false; break; case 2: if (getTime64NanosecondValue() != other.getTime64NanosecondValue()) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (valueCase_) { case 1: hash = (37 * hash) + TIME64_MICROSECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTime64MicrosecondValue()); break; case 2: hash = (37 * hash) + TIME64_NANOSECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTime64NanosecondValue()); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value 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 ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value 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 ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value 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(ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value 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; } /** * Protobuf type {@code chalk.arrow.v1.ScalarTime64Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.ScalarTime64Value) ai.chalk.protos.chalk.arrow.v1.ScalarTime64ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime64Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime64Value_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.class, ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTime64Value_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value build() { ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value buildPartial() { ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value result = new ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value result) { result.valueCase_ = valueCase_; result.value_ = this.value_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value other) { if (other == ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.getDefaultInstance()) return this; switch (other.getValueCase()) { case TIME64_MICROSECOND_VALUE: { setTime64MicrosecondValue(other.getTime64MicrosecondValue()); break; } case TIME64_NANOSECOND_VALUE: { setTime64NanosecondValue(other.getTime64NanosecondValue()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { value_ = input.readInt64(); valueCase_ = 1; break; } // case 8 case 16: { value_ = input.readInt64(); valueCase_ = 2; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; /** * <code>int64 time64_microsecond_value = 1 [json_name = "time64MicrosecondValue"];</code> * @return Whether the time64MicrosecondValue field is set. */ public boolean hasTime64MicrosecondValue() { return valueCase_ == 1; } /** * <code>int64 time64_microsecond_value = 1 [json_name = "time64MicrosecondValue"];</code> * @return The time64MicrosecondValue. */ public long getTime64MicrosecondValue() { if (valueCase_ == 1) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 time64_microsecond_value = 1 [json_name = "time64MicrosecondValue"];</code> * @param value The time64MicrosecondValue to set. * @return This builder for chaining. */ public Builder setTime64MicrosecondValue(long value) { valueCase_ = 1; value_ = value; onChanged(); return this; } /** * <code>int64 time64_microsecond_value = 1 [json_name = "time64MicrosecondValue"];</code> * @return This builder for chaining. */ public Builder clearTime64MicrosecondValue() { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int64 time64_nanosecond_value = 2 [json_name = "time64NanosecondValue"];</code> * @return Whether the time64NanosecondValue field is set. */ public boolean hasTime64NanosecondValue() { return valueCase_ == 2; } /** * <code>int64 time64_nanosecond_value = 2 [json_name = "time64NanosecondValue"];</code> * @return The time64NanosecondValue. */ public long getTime64NanosecondValue() { if (valueCase_ == 2) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 time64_nanosecond_value = 2 [json_name = "time64NanosecondValue"];</code> * @param value The time64NanosecondValue to set. * @return This builder for chaining. */ public Builder setTime64NanosecondValue(long value) { valueCase_ = 2; value_ = value; onChanged(); return this; } /** * <code>int64 time64_nanosecond_value = 2 [json_name = "time64NanosecondValue"];</code> * @return This builder for chaining. */ public Builder clearTime64NanosecondValue() { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.ScalarTime64Value) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.ScalarTime64Value) private static final ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value(); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ScalarTime64Value> PARSER = new com.google.protobuf.AbstractParser<ScalarTime64Value>() { @java.lang.Override public ScalarTime64Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<ScalarTime64Value> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ScalarTime64Value> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarTime64ValueOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ScalarTime64ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.ScalarTime64Value) com.google.protobuf.MessageOrBuilder { /** * <code>int64 time64_microsecond_value = 1 [json_name = "time64MicrosecondValue"];</code> * @return Whether the time64MicrosecondValue field is set. */ boolean hasTime64MicrosecondValue(); /** * <code>int64 time64_microsecond_value = 1 [json_name = "time64MicrosecondValue"];</code> * @return The time64MicrosecondValue. */ long getTime64MicrosecondValue(); /** * <code>int64 time64_nanosecond_value = 2 [json_name = "time64NanosecondValue"];</code> * @return Whether the time64NanosecondValue field is set. */ boolean hasTime64NanosecondValue(); /** * <code>int64 time64_nanosecond_value = 2 [json_name = "time64NanosecondValue"];</code> * @return The time64NanosecondValue. */ long getTime64NanosecondValue(); ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.ValueCase getValueCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarTimestampValue.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.ScalarTimestampValue} */ public final class ScalarTimestampValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.ScalarTimestampValue) ScalarTimestampValueOrBuilder { private static final long serialVersionUID = 0L; // Use ScalarTimestampValue.newBuilder() to construct. private ScalarTimestampValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ScalarTimestampValue() { timezone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScalarTimestampValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTimestampValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTimestampValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.class, ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.Builder.class); } private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TIME_MICROSECOND_VALUE(1), TIME_NANOSECOND_VALUE(2), TIME_SECOND_VALUE(3), TIME_MILLISECOND_VALUE(4), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return TIME_MICROSECOND_VALUE; case 2: return TIME_NANOSECOND_VALUE; case 3: return TIME_SECOND_VALUE; case 4: return TIME_MILLISECOND_VALUE; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int TIME_MICROSECOND_VALUE_FIELD_NUMBER = 1; /** * <code>int64 time_microsecond_value = 1 [json_name = "timeMicrosecondValue"];</code> * @return Whether the timeMicrosecondValue field is set. */ @java.lang.Override public boolean hasTimeMicrosecondValue() { return valueCase_ == 1; } /** * <code>int64 time_microsecond_value = 1 [json_name = "timeMicrosecondValue"];</code> * @return The timeMicrosecondValue. */ @java.lang.Override public long getTimeMicrosecondValue() { if (valueCase_ == 1) { return (java.lang.Long) value_; } return 0L; } public static final int TIME_NANOSECOND_VALUE_FIELD_NUMBER = 2; /** * <code>int64 time_nanosecond_value = 2 [json_name = "timeNanosecondValue"];</code> * @return Whether the timeNanosecondValue field is set. */ @java.lang.Override public boolean hasTimeNanosecondValue() { return valueCase_ == 2; } /** * <code>int64 time_nanosecond_value = 2 [json_name = "timeNanosecondValue"];</code> * @return The timeNanosecondValue. */ @java.lang.Override public long getTimeNanosecondValue() { if (valueCase_ == 2) { return (java.lang.Long) value_; } return 0L; } public static final int TIME_SECOND_VALUE_FIELD_NUMBER = 3; /** * <code>int64 time_second_value = 3 [json_name = "timeSecondValue"];</code> * @return Whether the timeSecondValue field is set. */ @java.lang.Override public boolean hasTimeSecondValue() { return valueCase_ == 3; } /** * <code>int64 time_second_value = 3 [json_name = "timeSecondValue"];</code> * @return The timeSecondValue. */ @java.lang.Override public long getTimeSecondValue() { if (valueCase_ == 3) { return (java.lang.Long) value_; } return 0L; } public static final int TIME_MILLISECOND_VALUE_FIELD_NUMBER = 4; /** * <code>int64 time_millisecond_value = 4 [json_name = "timeMillisecondValue"];</code> * @return Whether the timeMillisecondValue field is set. */ @java.lang.Override public boolean hasTimeMillisecondValue() { return valueCase_ == 4; } /** * <code>int64 time_millisecond_value = 4 [json_name = "timeMillisecondValue"];</code> * @return The timeMillisecondValue. */ @java.lang.Override public long getTimeMillisecondValue() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } public static final int TIMEZONE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object timezone_ = ""; /** * <code>string timezone = 5 [json_name = "timezone"];</code> * @return The timezone. */ @java.lang.Override public java.lang.String getTimezone() { java.lang.Object ref = timezone_; 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(); timezone_ = s; return s; } } /** * <code>string timezone = 5 [json_name = "timezone"];</code> * @return The bytes for timezone. */ @java.lang.Override public com.google.protobuf.ByteString getTimezoneBytes() { java.lang.Object ref = timezone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timezone_ = 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 (valueCase_ == 1) { output.writeInt64( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { output.writeInt64( 2, (long)((java.lang.Long) value_)); } if (valueCase_ == 3) { output.writeInt64( 3, (long)((java.lang.Long) value_)); } if (valueCase_ == 4) { output.writeInt64( 4, (long)((java.lang.Long) value_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, timezone_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 1, (long)((java.lang.Long) value_)); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 2, (long)((java.lang.Long) value_)); } if (valueCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 3, (long)((java.lang.Long) value_)); } if (valueCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 4, (long)((java.lang.Long) value_)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, timezone_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue other = (ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) obj; if (!getTimezone() .equals(other.getTimezone())) return false; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: if (getTimeMicrosecondValue() != other.getTimeMicrosecondValue()) return false; break; case 2: if (getTimeNanosecondValue() != other.getTimeNanosecondValue()) return false; break; case 3: if (getTimeSecondValue() != other.getTimeSecondValue()) return false; break; case 4: if (getTimeMillisecondValue() != other.getTimeMillisecondValue()) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TIMEZONE_FIELD_NUMBER; hash = (53 * hash) + getTimezone().hashCode(); switch (valueCase_) { case 1: hash = (37 * hash) + TIME_MICROSECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeMicrosecondValue()); break; case 2: hash = (37 * hash) + TIME_NANOSECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeNanosecondValue()); break; case 3: hash = (37 * hash) + TIME_SECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeSecondValue()); break; case 4: hash = (37 * hash) + TIME_MILLISECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeMillisecondValue()); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue 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 ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue 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 ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue 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(ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue 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; } /** * Protobuf type {@code chalk.arrow.v1.ScalarTimestampValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.ScalarTimestampValue) ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTimestampValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTimestampValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.class, ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timezone_ = ""; valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarTimestampValue_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue build() { ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue buildPartial() { ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue result = new ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000010) != 0)) { result.timezone_ = timezone_; } } private void buildPartialOneofs(ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue other) { if (other == ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.getDefaultInstance()) return this; if (!other.getTimezone().isEmpty()) { timezone_ = other.timezone_; bitField0_ |= 0x00000010; onChanged(); } switch (other.getValueCase()) { case TIME_MICROSECOND_VALUE: { setTimeMicrosecondValue(other.getTimeMicrosecondValue()); break; } case TIME_NANOSECOND_VALUE: { setTimeNanosecondValue(other.getTimeNanosecondValue()); break; } case TIME_SECOND_VALUE: { setTimeSecondValue(other.getTimeSecondValue()); break; } case TIME_MILLISECOND_VALUE: { setTimeMillisecondValue(other.getTimeMillisecondValue()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { value_ = input.readInt64(); valueCase_ = 1; break; } // case 8 case 16: { value_ = input.readInt64(); valueCase_ = 2; break; } // case 16 case 24: { value_ = input.readInt64(); valueCase_ = 3; break; } // case 24 case 32: { value_ = input.readInt64(); valueCase_ = 4; break; } // case 32 case 42: { timezone_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; /** * <code>int64 time_microsecond_value = 1 [json_name = "timeMicrosecondValue"];</code> * @return Whether the timeMicrosecondValue field is set. */ public boolean hasTimeMicrosecondValue() { return valueCase_ == 1; } /** * <code>int64 time_microsecond_value = 1 [json_name = "timeMicrosecondValue"];</code> * @return The timeMicrosecondValue. */ public long getTimeMicrosecondValue() { if (valueCase_ == 1) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 time_microsecond_value = 1 [json_name = "timeMicrosecondValue"];</code> * @param value The timeMicrosecondValue to set. * @return This builder for chaining. */ public Builder setTimeMicrosecondValue(long value) { valueCase_ = 1; value_ = value; onChanged(); return this; } /** * <code>int64 time_microsecond_value = 1 [json_name = "timeMicrosecondValue"];</code> * @return This builder for chaining. */ public Builder clearTimeMicrosecondValue() { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int64 time_nanosecond_value = 2 [json_name = "timeNanosecondValue"];</code> * @return Whether the timeNanosecondValue field is set. */ public boolean hasTimeNanosecondValue() { return valueCase_ == 2; } /** * <code>int64 time_nanosecond_value = 2 [json_name = "timeNanosecondValue"];</code> * @return The timeNanosecondValue. */ public long getTimeNanosecondValue() { if (valueCase_ == 2) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 time_nanosecond_value = 2 [json_name = "timeNanosecondValue"];</code> * @param value The timeNanosecondValue to set. * @return This builder for chaining. */ public Builder setTimeNanosecondValue(long value) { valueCase_ = 2; value_ = value; onChanged(); return this; } /** * <code>int64 time_nanosecond_value = 2 [json_name = "timeNanosecondValue"];</code> * @return This builder for chaining. */ public Builder clearTimeNanosecondValue() { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int64 time_second_value = 3 [json_name = "timeSecondValue"];</code> * @return Whether the timeSecondValue field is set. */ public boolean hasTimeSecondValue() { return valueCase_ == 3; } /** * <code>int64 time_second_value = 3 [json_name = "timeSecondValue"];</code> * @return The timeSecondValue. */ public long getTimeSecondValue() { if (valueCase_ == 3) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 time_second_value = 3 [json_name = "timeSecondValue"];</code> * @param value The timeSecondValue to set. * @return This builder for chaining. */ public Builder setTimeSecondValue(long value) { valueCase_ = 3; value_ = value; onChanged(); return this; } /** * <code>int64 time_second_value = 3 [json_name = "timeSecondValue"];</code> * @return This builder for chaining. */ public Builder clearTimeSecondValue() { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int64 time_millisecond_value = 4 [json_name = "timeMillisecondValue"];</code> * @return Whether the timeMillisecondValue field is set. */ public boolean hasTimeMillisecondValue() { return valueCase_ == 4; } /** * <code>int64 time_millisecond_value = 4 [json_name = "timeMillisecondValue"];</code> * @return The timeMillisecondValue. */ public long getTimeMillisecondValue() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 time_millisecond_value = 4 [json_name = "timeMillisecondValue"];</code> * @param value The timeMillisecondValue to set. * @return This builder for chaining. */ public Builder setTimeMillisecondValue(long value) { valueCase_ = 4; value_ = value; onChanged(); return this; } /** * <code>int64 time_millisecond_value = 4 [json_name = "timeMillisecondValue"];</code> * @return This builder for chaining. */ public Builder clearTimeMillisecondValue() { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private java.lang.Object timezone_ = ""; /** * <code>string timezone = 5 [json_name = "timezone"];</code> * @return The timezone. */ public java.lang.String getTimezone() { java.lang.Object ref = timezone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timezone_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string timezone = 5 [json_name = "timezone"];</code> * @return The bytes for timezone. */ public com.google.protobuf.ByteString getTimezoneBytes() { java.lang.Object ref = timezone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timezone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string timezone = 5 [json_name = "timezone"];</code> * @param value The timezone to set. * @return This builder for chaining. */ public Builder setTimezone( java.lang.String value) { if (value == null) { throw new NullPointerException(); } timezone_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>string timezone = 5 [json_name = "timezone"];</code> * @return This builder for chaining. */ public Builder clearTimezone() { timezone_ = getDefaultInstance().getTimezone(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * <code>string timezone = 5 [json_name = "timezone"];</code> * @param value The bytes for timezone to set. * @return This builder for chaining. */ public Builder setTimezoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timezone_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.ScalarTimestampValue) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.ScalarTimestampValue) private static final ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue(); } public static ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ScalarTimestampValue> PARSER = new com.google.protobuf.AbstractParser<ScalarTimestampValue>() { @java.lang.Override public ScalarTimestampValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<ScalarTimestampValue> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ScalarTimestampValue> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarTimestampValueOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ScalarTimestampValueOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.ScalarTimestampValue) com.google.protobuf.MessageOrBuilder { /** * <code>int64 time_microsecond_value = 1 [json_name = "timeMicrosecondValue"];</code> * @return Whether the timeMicrosecondValue field is set. */ boolean hasTimeMicrosecondValue(); /** * <code>int64 time_microsecond_value = 1 [json_name = "timeMicrosecondValue"];</code> * @return The timeMicrosecondValue. */ long getTimeMicrosecondValue(); /** * <code>int64 time_nanosecond_value = 2 [json_name = "timeNanosecondValue"];</code> * @return Whether the timeNanosecondValue field is set. */ boolean hasTimeNanosecondValue(); /** * <code>int64 time_nanosecond_value = 2 [json_name = "timeNanosecondValue"];</code> * @return The timeNanosecondValue. */ long getTimeNanosecondValue(); /** * <code>int64 time_second_value = 3 [json_name = "timeSecondValue"];</code> * @return Whether the timeSecondValue field is set. */ boolean hasTimeSecondValue(); /** * <code>int64 time_second_value = 3 [json_name = "timeSecondValue"];</code> * @return The timeSecondValue. */ long getTimeSecondValue(); /** * <code>int64 time_millisecond_value = 4 [json_name = "timeMillisecondValue"];</code> * @return Whether the timeMillisecondValue field is set. */ boolean hasTimeMillisecondValue(); /** * <code>int64 time_millisecond_value = 4 [json_name = "timeMillisecondValue"];</code> * @return The timeMillisecondValue. */ long getTimeMillisecondValue(); /** * <code>string timezone = 5 [json_name = "timezone"];</code> * @return The timezone. */ java.lang.String getTimezone(); /** * <code>string timezone = 5 [json_name = "timezone"];</code> * @return The bytes for timezone. */ com.google.protobuf.ByteString getTimezoneBytes(); ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.ValueCase getValueCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarValue.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.ScalarValue} */ public final class ScalarValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.ScalarValue) ScalarValueOrBuilder { private static final long serialVersionUID = 0L; // Use ScalarValue.newBuilder() to construct. private ScalarValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ScalarValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScalarValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarValue.class, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder.class); } private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NULL_VALUE(1), BOOL_VALUE(2), FLOAT64_VALUE(3), INT64_VALUE(4), LARGE_UTF8_VALUE(5), TIMESTAMP_VALUE(6), DATE_64_VALUE(7), STRUCT_VALUE(8), LARGE_LIST_VALUE(9), TIME64_VALUE(10), DURATION_SECOND_VALUE(16), DURATION_MILLISECOND_VALUE(17), DURATION_MICROSECOND_VALUE(18), DURATION_NANOSECOND_VALUE(19), UTF8_VALUE(20), INT8_VALUE(21), INT16_VALUE(22), INT32_VALUE(23), UINT8_VALUE(24), UINT16_VALUE(25), UINT32_VALUE(26), UINT64_VALUE(27), FLOAT16_VALUE(28), FLOAT32_VALUE(29), DATE_32_VALUE(30), TIME32_VALUE(31), LIST_VALUE(32), FIXED_SIZE_LIST_VALUE(33), MAP_VALUE(34), BINARY_VALUE(35), LARGE_BINARY_VALUE(36), FIXED_SIZE_BINARY_VALUE(37), DECIMAL128_VALUE(38), DECIMAL256_VALUE(39), EXTENSION_VALUE(40), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return NULL_VALUE; case 2: return BOOL_VALUE; case 3: return FLOAT64_VALUE; case 4: return INT64_VALUE; case 5: return LARGE_UTF8_VALUE; case 6: return TIMESTAMP_VALUE; case 7: return DATE_64_VALUE; case 8: return STRUCT_VALUE; case 9: return LARGE_LIST_VALUE; case 10: return TIME64_VALUE; case 16: return DURATION_SECOND_VALUE; case 17: return DURATION_MILLISECOND_VALUE; case 18: return DURATION_MICROSECOND_VALUE; case 19: return DURATION_NANOSECOND_VALUE; case 20: return UTF8_VALUE; case 21: return INT8_VALUE; case 22: return INT16_VALUE; case 23: return INT32_VALUE; case 24: return UINT8_VALUE; case 25: return UINT16_VALUE; case 26: return UINT32_VALUE; case 27: return UINT64_VALUE; case 28: return FLOAT16_VALUE; case 29: return FLOAT32_VALUE; case 30: return DATE_32_VALUE; case 31: return TIME32_VALUE; case 32: return LIST_VALUE; case 33: return FIXED_SIZE_LIST_VALUE; case 34: return MAP_VALUE; case 35: return BINARY_VALUE; case 36: return LARGE_BINARY_VALUE; case 37: return FIXED_SIZE_BINARY_VALUE; case 38: return DECIMAL128_VALUE; case 39: return DECIMAL256_VALUE; case 40: return EXTENSION_VALUE; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int NULL_VALUE_FIELD_NUMBER = 1; /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> * @return Whether the nullValue field is set. */ @java.lang.Override public boolean hasNullValue() { return valueCase_ == 1; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> * @return The nullValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getNullValue() { if (valueCase_ == 1) { return (ai.chalk.protos.chalk.arrow.v1.ArrowType) value_; } return ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance(); } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getNullValueOrBuilder() { if (valueCase_ == 1) { return (ai.chalk.protos.chalk.arrow.v1.ArrowType) value_; } return ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance(); } public static final int BOOL_VALUE_FIELD_NUMBER = 2; /** * <code>bool bool_value = 2 [json_name = "boolValue"];</code> * @return Whether the boolValue field is set. */ @java.lang.Override public boolean hasBoolValue() { return valueCase_ == 2; } /** * <code>bool bool_value = 2 [json_name = "boolValue"];</code> * @return The boolValue. */ @java.lang.Override public boolean getBoolValue() { if (valueCase_ == 2) { return (java.lang.Boolean) value_; } return false; } public static final int FLOAT64_VALUE_FIELD_NUMBER = 3; /** * <code>double float64_value = 3 [json_name = "float64Value"];</code> * @return Whether the float64Value field is set. */ @java.lang.Override public boolean hasFloat64Value() { return valueCase_ == 3; } /** * <code>double float64_value = 3 [json_name = "float64Value"];</code> * @return The float64Value. */ @java.lang.Override public double getFloat64Value() { if (valueCase_ == 3) { return (java.lang.Double) value_; } return 0D; } public static final int INT64_VALUE_FIELD_NUMBER = 4; /** * <code>int64 int64_value = 4 [json_name = "int64Value"];</code> * @return Whether the int64Value field is set. */ @java.lang.Override public boolean hasInt64Value() { return valueCase_ == 4; } /** * <code>int64 int64_value = 4 [json_name = "int64Value"];</code> * @return The int64Value. */ @java.lang.Override public long getInt64Value() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } public static final int LARGE_UTF8_VALUE_FIELD_NUMBER = 5; /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return Whether the largeUtf8Value field is set. */ public boolean hasLargeUtf8Value() { return valueCase_ == 5; } /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return The largeUtf8Value. */ public java.lang.String getLargeUtf8Value() { java.lang.Object ref = ""; if (valueCase_ == 5) { ref = value_; } 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 (valueCase_ == 5) { value_ = s; } return s; } } /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return The bytes for largeUtf8Value. */ public com.google.protobuf.ByteString getLargeUtf8ValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 5) { ref = value_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 5) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 6; /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> * @return Whether the timestampValue field is set. */ @java.lang.Override public boolean hasTimestampValue() { return valueCase_ == 6; } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> * @return The timestampValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue getTimestampValue() { if (valueCase_ == 6) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValueOrBuilder getTimestampValueOrBuilder() { if (valueCase_ == 6) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.getDefaultInstance(); } public static final int DATE_64_VALUE_FIELD_NUMBER = 7; /** * <code>int64 date_64_value = 7 [json_name = "date64Value"];</code> * @return Whether the date64Value field is set. */ @java.lang.Override public boolean hasDate64Value() { return valueCase_ == 7; } /** * <code>int64 date_64_value = 7 [json_name = "date64Value"];</code> * @return The date64Value. */ @java.lang.Override public long getDate64Value() { if (valueCase_ == 7) { return (java.lang.Long) value_; } return 0L; } public static final int STRUCT_VALUE_FIELD_NUMBER = 8; /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> * @return Whether the structValue field is set. */ @java.lang.Override public boolean hasStructValue() { return valueCase_ == 8; } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> * @return The structValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructValue getStructValue() { if (valueCase_ == 8) { return (ai.chalk.protos.chalk.arrow.v1.StructValue) value_; } return ai.chalk.protos.chalk.arrow.v1.StructValue.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructValueOrBuilder getStructValueOrBuilder() { if (valueCase_ == 8) { return (ai.chalk.protos.chalk.arrow.v1.StructValue) value_; } return ai.chalk.protos.chalk.arrow.v1.StructValue.getDefaultInstance(); } public static final int LARGE_LIST_VALUE_FIELD_NUMBER = 9; /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> * @return Whether the largeListValue field is set. */ @java.lang.Override public boolean hasLargeListValue() { return valueCase_ == 9; } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> * @return The largeListValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getLargeListValue() { if (valueCase_ == 9) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getLargeListValueOrBuilder() { if (valueCase_ == 9) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } public static final int TIME64_VALUE_FIELD_NUMBER = 10; /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> * @return Whether the time64Value field is set. */ @java.lang.Override public boolean hasTime64Value() { return valueCase_ == 10; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> * @return The time64Value. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value getTime64Value() { if (valueCase_ == 10) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.getDefaultInstance(); } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime64ValueOrBuilder getTime64ValueOrBuilder() { if (valueCase_ == 10) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.getDefaultInstance(); } public static final int DURATION_SECOND_VALUE_FIELD_NUMBER = 16; /** * <code>int64 duration_second_value = 16 [json_name = "durationSecondValue"];</code> * @return Whether the durationSecondValue field is set. */ @java.lang.Override public boolean hasDurationSecondValue() { return valueCase_ == 16; } /** * <code>int64 duration_second_value = 16 [json_name = "durationSecondValue"];</code> * @return The durationSecondValue. */ @java.lang.Override public long getDurationSecondValue() { if (valueCase_ == 16) { return (java.lang.Long) value_; } return 0L; } public static final int DURATION_MILLISECOND_VALUE_FIELD_NUMBER = 17; /** * <code>int64 duration_millisecond_value = 17 [json_name = "durationMillisecondValue"];</code> * @return Whether the durationMillisecondValue field is set. */ @java.lang.Override public boolean hasDurationMillisecondValue() { return valueCase_ == 17; } /** * <code>int64 duration_millisecond_value = 17 [json_name = "durationMillisecondValue"];</code> * @return The durationMillisecondValue. */ @java.lang.Override public long getDurationMillisecondValue() { if (valueCase_ == 17) { return (java.lang.Long) value_; } return 0L; } public static final int DURATION_MICROSECOND_VALUE_FIELD_NUMBER = 18; /** * <code>int64 duration_microsecond_value = 18 [json_name = "durationMicrosecondValue"];</code> * @return Whether the durationMicrosecondValue field is set. */ @java.lang.Override public boolean hasDurationMicrosecondValue() { return valueCase_ == 18; } /** * <code>int64 duration_microsecond_value = 18 [json_name = "durationMicrosecondValue"];</code> * @return The durationMicrosecondValue. */ @java.lang.Override public long getDurationMicrosecondValue() { if (valueCase_ == 18) { return (java.lang.Long) value_; } return 0L; } public static final int DURATION_NANOSECOND_VALUE_FIELD_NUMBER = 19; /** * <code>int64 duration_nanosecond_value = 19 [json_name = "durationNanosecondValue"];</code> * @return Whether the durationNanosecondValue field is set. */ @java.lang.Override public boolean hasDurationNanosecondValue() { return valueCase_ == 19; } /** * <code>int64 duration_nanosecond_value = 19 [json_name = "durationNanosecondValue"];</code> * @return The durationNanosecondValue. */ @java.lang.Override public long getDurationNanosecondValue() { if (valueCase_ == 19) { return (java.lang.Long) value_; } return 0L; } public static final int UTF8_VALUE_FIELD_NUMBER = 20; /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return Whether the utf8Value field is set. */ public boolean hasUtf8Value() { return valueCase_ == 20; } /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return The utf8Value. */ public java.lang.String getUtf8Value() { java.lang.Object ref = ""; if (valueCase_ == 20) { ref = value_; } 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 (valueCase_ == 20) { value_ = s; } return s; } } /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return The bytes for utf8Value. */ public com.google.protobuf.ByteString getUtf8ValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 20) { ref = value_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 20) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INT8_VALUE_FIELD_NUMBER = 21; /** * <code>int32 int8_value = 21 [json_name = "int8Value"];</code> * @return Whether the int8Value field is set. */ @java.lang.Override public boolean hasInt8Value() { return valueCase_ == 21; } /** * <code>int32 int8_value = 21 [json_name = "int8Value"];</code> * @return The int8Value. */ @java.lang.Override public int getInt8Value() { if (valueCase_ == 21) { return (java.lang.Integer) value_; } return 0; } public static final int INT16_VALUE_FIELD_NUMBER = 22; /** * <code>int32 int16_value = 22 [json_name = "int16Value"];</code> * @return Whether the int16Value field is set. */ @java.lang.Override public boolean hasInt16Value() { return valueCase_ == 22; } /** * <code>int32 int16_value = 22 [json_name = "int16Value"];</code> * @return The int16Value. */ @java.lang.Override public int getInt16Value() { if (valueCase_ == 22) { return (java.lang.Integer) value_; } return 0; } public static final int INT32_VALUE_FIELD_NUMBER = 23; /** * <code>int32 int32_value = 23 [json_name = "int32Value"];</code> * @return Whether the int32Value field is set. */ @java.lang.Override public boolean hasInt32Value() { return valueCase_ == 23; } /** * <code>int32 int32_value = 23 [json_name = "int32Value"];</code> * @return The int32Value. */ @java.lang.Override public int getInt32Value() { if (valueCase_ == 23) { return (java.lang.Integer) value_; } return 0; } public static final int UINT8_VALUE_FIELD_NUMBER = 24; /** * <code>uint32 uint8_value = 24 [json_name = "uint8Value"];</code> * @return Whether the uint8Value field is set. */ @java.lang.Override public boolean hasUint8Value() { return valueCase_ == 24; } /** * <code>uint32 uint8_value = 24 [json_name = "uint8Value"];</code> * @return The uint8Value. */ @java.lang.Override public int getUint8Value() { if (valueCase_ == 24) { return (java.lang.Integer) value_; } return 0; } public static final int UINT16_VALUE_FIELD_NUMBER = 25; /** * <code>uint32 uint16_value = 25 [json_name = "uint16Value"];</code> * @return Whether the uint16Value field is set. */ @java.lang.Override public boolean hasUint16Value() { return valueCase_ == 25; } /** * <code>uint32 uint16_value = 25 [json_name = "uint16Value"];</code> * @return The uint16Value. */ @java.lang.Override public int getUint16Value() { if (valueCase_ == 25) { return (java.lang.Integer) value_; } return 0; } public static final int UINT32_VALUE_FIELD_NUMBER = 26; /** * <code>uint32 uint32_value = 26 [json_name = "uint32Value"];</code> * @return Whether the uint32Value field is set. */ @java.lang.Override public boolean hasUint32Value() { return valueCase_ == 26; } /** * <code>uint32 uint32_value = 26 [json_name = "uint32Value"];</code> * @return The uint32Value. */ @java.lang.Override public int getUint32Value() { if (valueCase_ == 26) { return (java.lang.Integer) value_; } return 0; } public static final int UINT64_VALUE_FIELD_NUMBER = 27; /** * <code>uint64 uint64_value = 27 [json_name = "uint64Value"];</code> * @return Whether the uint64Value field is set. */ @java.lang.Override public boolean hasUint64Value() { return valueCase_ == 27; } /** * <code>uint64 uint64_value = 27 [json_name = "uint64Value"];</code> * @return The uint64Value. */ @java.lang.Override public long getUint64Value() { if (valueCase_ == 27) { return (java.lang.Long) value_; } return 0L; } public static final int FLOAT16_VALUE_FIELD_NUMBER = 28; /** * <code>float float16_value = 28 [json_name = "float16Value"];</code> * @return Whether the float16Value field is set. */ @java.lang.Override public boolean hasFloat16Value() { return valueCase_ == 28; } /** * <code>float float16_value = 28 [json_name = "float16Value"];</code> * @return The float16Value. */ @java.lang.Override public float getFloat16Value() { if (valueCase_ == 28) { return (java.lang.Float) value_; } return 0F; } public static final int FLOAT32_VALUE_FIELD_NUMBER = 29; /** * <code>float float32_value = 29 [json_name = "float32Value"];</code> * @return Whether the float32Value field is set. */ @java.lang.Override public boolean hasFloat32Value() { return valueCase_ == 29; } /** * <code>float float32_value = 29 [json_name = "float32Value"];</code> * @return The float32Value. */ @java.lang.Override public float getFloat32Value() { if (valueCase_ == 29) { return (java.lang.Float) value_; } return 0F; } public static final int DATE_32_VALUE_FIELD_NUMBER = 30; /** * <code>int32 date_32_value = 30 [json_name = "date32Value"];</code> * @return Whether the date32Value field is set. */ @java.lang.Override public boolean hasDate32Value() { return valueCase_ == 30; } /** * <code>int32 date_32_value = 30 [json_name = "date32Value"];</code> * @return The date32Value. */ @java.lang.Override public int getDate32Value() { if (valueCase_ == 30) { return (java.lang.Integer) value_; } return 0; } public static final int TIME32_VALUE_FIELD_NUMBER = 31; /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> * @return Whether the time32Value field is set. */ @java.lang.Override public boolean hasTime32Value() { return valueCase_ == 31; } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> * @return The time32Value. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value getTime32Value() { if (valueCase_ == 31) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime32ValueOrBuilder getTime32ValueOrBuilder() { if (valueCase_ == 31) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.getDefaultInstance(); } public static final int LIST_VALUE_FIELD_NUMBER = 32; /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> * @return Whether the listValue field is set. */ @java.lang.Override public boolean hasListValue() { return valueCase_ == 32; } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> * @return The listValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getListValue() { if (valueCase_ == 32) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getListValueOrBuilder() { if (valueCase_ == 32) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } public static final int FIXED_SIZE_LIST_VALUE_FIELD_NUMBER = 33; /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> * @return Whether the fixedSizeListValue field is set. */ @java.lang.Override public boolean hasFixedSizeListValue() { return valueCase_ == 33; } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> * @return The fixedSizeListValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getFixedSizeListValue() { if (valueCase_ == 33) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getFixedSizeListValueOrBuilder() { if (valueCase_ == 33) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } public static final int MAP_VALUE_FIELD_NUMBER = 34; /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> * @return Whether the mapValue field is set. */ @java.lang.Override public boolean hasMapValue() { return valueCase_ == 34; } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> * @return The mapValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getMapValue() { if (valueCase_ == 34) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getMapValueOrBuilder() { if (valueCase_ == 34) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } public static final int BINARY_VALUE_FIELD_NUMBER = 35; /** * <code>bytes binary_value = 35 [json_name = "binaryValue"];</code> * @return Whether the binaryValue field is set. */ @java.lang.Override public boolean hasBinaryValue() { return valueCase_ == 35; } /** * <code>bytes binary_value = 35 [json_name = "binaryValue"];</code> * @return The binaryValue. */ @java.lang.Override public com.google.protobuf.ByteString getBinaryValue() { if (valueCase_ == 35) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } public static final int LARGE_BINARY_VALUE_FIELD_NUMBER = 36; /** * <code>bytes large_binary_value = 36 [json_name = "largeBinaryValue"];</code> * @return Whether the largeBinaryValue field is set. */ @java.lang.Override public boolean hasLargeBinaryValue() { return valueCase_ == 36; } /** * <code>bytes large_binary_value = 36 [json_name = "largeBinaryValue"];</code> * @return The largeBinaryValue. */ @java.lang.Override public com.google.protobuf.ByteString getLargeBinaryValue() { if (valueCase_ == 36) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } public static final int FIXED_SIZE_BINARY_VALUE_FIELD_NUMBER = 37; /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> * @return Whether the fixedSizeBinaryValue field is set. */ @java.lang.Override public boolean hasFixedSizeBinaryValue() { return valueCase_ == 37; } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> * @return The fixedSizeBinaryValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary getFixedSizeBinaryValue() { if (valueCase_ == 37) { return (ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinaryOrBuilder getFixedSizeBinaryValueOrBuilder() { if (valueCase_ == 37) { return (ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.getDefaultInstance(); } public static final int DECIMAL128_VALUE_FIELD_NUMBER = 38; /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> * @return Whether the decimal128Value field is set. */ @java.lang.Override public boolean hasDecimal128Value() { return valueCase_ == 38; } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> * @return The decimal128Value. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValue getDecimal128Value() { if (valueCase_ == 38) { return (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_; } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder getDecimal128ValueOrBuilder() { if (valueCase_ == 38) { return (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_; } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } public static final int DECIMAL256_VALUE_FIELD_NUMBER = 39; /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> * @return Whether the decimal256Value field is set. */ @java.lang.Override public boolean hasDecimal256Value() { return valueCase_ == 39; } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> * @return The decimal256Value. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValue getDecimal256Value() { if (valueCase_ == 39) { return (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_; } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder getDecimal256ValueOrBuilder() { if (valueCase_ == 39) { return (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_; } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } public static final int EXTENSION_VALUE_FIELD_NUMBER = 40; /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> * @return Whether the extensionValue field is set. */ @java.lang.Override public boolean hasExtensionValue() { return valueCase_ == 40; } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> * @return The extensionValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionValue getExtensionValue() { if (valueCase_ == 40) { return (ai.chalk.protos.chalk.arrow.v1.ExtensionValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ExtensionValue.getDefaultInstance(); } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionValueOrBuilder getExtensionValueOrBuilder() { if (valueCase_ == 40) { return (ai.chalk.protos.chalk.arrow.v1.ExtensionValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ExtensionValue.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 (valueCase_ == 1) { output.writeMessage(1, (ai.chalk.protos.chalk.arrow.v1.ArrowType) value_); } if (valueCase_ == 2) { output.writeBool( 2, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 3) { output.writeDouble( 3, (double)((java.lang.Double) value_)); } if (valueCase_ == 4) { output.writeInt64( 4, (long)((java.lang.Long) value_)); } if (valueCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, value_); } if (valueCase_ == 6) { output.writeMessage(6, (ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) value_); } if (valueCase_ == 7) { output.writeInt64( 7, (long)((java.lang.Long) value_)); } if (valueCase_ == 8) { output.writeMessage(8, (ai.chalk.protos.chalk.arrow.v1.StructValue) value_); } if (valueCase_ == 9) { output.writeMessage(9, (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_); } if (valueCase_ == 10) { output.writeMessage(10, (ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) value_); } if (valueCase_ == 16) { output.writeInt64( 16, (long)((java.lang.Long) value_)); } if (valueCase_ == 17) { output.writeInt64( 17, (long)((java.lang.Long) value_)); } if (valueCase_ == 18) { output.writeInt64( 18, (long)((java.lang.Long) value_)); } if (valueCase_ == 19) { output.writeInt64( 19, (long)((java.lang.Long) value_)); } if (valueCase_ == 20) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, value_); } if (valueCase_ == 21) { output.writeInt32( 21, (int)((java.lang.Integer) value_)); } if (valueCase_ == 22) { output.writeInt32( 22, (int)((java.lang.Integer) value_)); } if (valueCase_ == 23) { output.writeInt32( 23, (int)((java.lang.Integer) value_)); } if (valueCase_ == 24) { output.writeUInt32( 24, (int)((java.lang.Integer) value_)); } if (valueCase_ == 25) { output.writeUInt32( 25, (int)((java.lang.Integer) value_)); } if (valueCase_ == 26) { output.writeUInt32( 26, (int)((java.lang.Integer) value_)); } if (valueCase_ == 27) { output.writeUInt64( 27, (long)((java.lang.Long) value_)); } if (valueCase_ == 28) { output.writeFloat( 28, (float)((java.lang.Float) value_)); } if (valueCase_ == 29) { output.writeFloat( 29, (float)((java.lang.Float) value_)); } if (valueCase_ == 30) { output.writeInt32( 30, (int)((java.lang.Integer) value_)); } if (valueCase_ == 31) { output.writeMessage(31, (ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) value_); } if (valueCase_ == 32) { output.writeMessage(32, (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_); } if (valueCase_ == 33) { output.writeMessage(33, (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_); } if (valueCase_ == 34) { output.writeMessage(34, (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_); } if (valueCase_ == 35) { output.writeBytes( 35, (com.google.protobuf.ByteString) value_); } if (valueCase_ == 36) { output.writeBytes( 36, (com.google.protobuf.ByteString) value_); } if (valueCase_ == 37) { output.writeMessage(37, (ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) value_); } if (valueCase_ == 38) { output.writeMessage(38, (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_); } if (valueCase_ == 39) { output.writeMessage(39, (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_); } if (valueCase_ == 40) { output.writeMessage(40, (ai.chalk.protos.chalk.arrow.v1.ExtensionValue) value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.chalk.protos.chalk.arrow.v1.ArrowType) value_); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 2, (boolean)((java.lang.Boolean) value_)); } if (valueCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 3, (double)((java.lang.Double) value_)); } if (valueCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 4, (long)((java.lang.Long) value_)); } if (valueCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, value_); } if (valueCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) value_); } if (valueCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 7, (long)((java.lang.Long) value_)); } if (valueCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (ai.chalk.protos.chalk.arrow.v1.StructValue) value_); } if (valueCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_); } if (valueCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) value_); } if (valueCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 16, (long)((java.lang.Long) value_)); } if (valueCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 17, (long)((java.lang.Long) value_)); } if (valueCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 18, (long)((java.lang.Long) value_)); } if (valueCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 19, (long)((java.lang.Long) value_)); } if (valueCase_ == 20) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, value_); } if (valueCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 21, (int)((java.lang.Integer) value_)); } if (valueCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 22, (int)((java.lang.Integer) value_)); } if (valueCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 23, (int)((java.lang.Integer) value_)); } if (valueCase_ == 24) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 24, (int)((java.lang.Integer) value_)); } if (valueCase_ == 25) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 25, (int)((java.lang.Integer) value_)); } if (valueCase_ == 26) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 26, (int)((java.lang.Integer) value_)); } if (valueCase_ == 27) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size( 27, (long)((java.lang.Long) value_)); } if (valueCase_ == 28) { size += com.google.protobuf.CodedOutputStream .computeFloatSize( 28, (float)((java.lang.Float) value_)); } if (valueCase_ == 29) { size += com.google.protobuf.CodedOutputStream .computeFloatSize( 29, (float)((java.lang.Float) value_)); } if (valueCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 30, (int)((java.lang.Integer) value_)); } if (valueCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) value_); } if (valueCase_ == 32) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_); } if (valueCase_ == 33) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_); } if (valueCase_ == 34) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_); } if (valueCase_ == 35) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 35, (com.google.protobuf.ByteString) value_); } if (valueCase_ == 36) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 36, (com.google.protobuf.ByteString) value_); } if (valueCase_ == 37) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(37, (ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) value_); } if (valueCase_ == 38) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(38, (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_); } if (valueCase_ == 39) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(39, (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_); } if (valueCase_ == 40) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, (ai.chalk.protos.chalk.arrow.v1.ExtensionValue) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.ScalarValue other = (ai.chalk.protos.chalk.arrow.v1.ScalarValue) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: if (!getNullValue() .equals(other.getNullValue())) return false; break; case 2: if (getBoolValue() != other.getBoolValue()) return false; break; case 3: if (java.lang.Double.doubleToLongBits(getFloat64Value()) != java.lang.Double.doubleToLongBits( other.getFloat64Value())) return false; break; case 4: if (getInt64Value() != other.getInt64Value()) return false; break; case 5: if (!getLargeUtf8Value() .equals(other.getLargeUtf8Value())) return false; break; case 6: if (!getTimestampValue() .equals(other.getTimestampValue())) return false; break; case 7: if (getDate64Value() != other.getDate64Value()) return false; break; case 8: if (!getStructValue() .equals(other.getStructValue())) return false; break; case 9: if (!getLargeListValue() .equals(other.getLargeListValue())) return false; break; case 10: if (!getTime64Value() .equals(other.getTime64Value())) return false; break; case 16: if (getDurationSecondValue() != other.getDurationSecondValue()) return false; break; case 17: if (getDurationMillisecondValue() != other.getDurationMillisecondValue()) return false; break; case 18: if (getDurationMicrosecondValue() != other.getDurationMicrosecondValue()) return false; break; case 19: if (getDurationNanosecondValue() != other.getDurationNanosecondValue()) return false; break; case 20: if (!getUtf8Value() .equals(other.getUtf8Value())) return false; break; case 21: if (getInt8Value() != other.getInt8Value()) return false; break; case 22: if (getInt16Value() != other.getInt16Value()) return false; break; case 23: if (getInt32Value() != other.getInt32Value()) return false; break; case 24: if (getUint8Value() != other.getUint8Value()) return false; break; case 25: if (getUint16Value() != other.getUint16Value()) return false; break; case 26: if (getUint32Value() != other.getUint32Value()) return false; break; case 27: if (getUint64Value() != other.getUint64Value()) return false; break; case 28: if (java.lang.Float.floatToIntBits(getFloat16Value()) != java.lang.Float.floatToIntBits( other.getFloat16Value())) return false; break; case 29: if (java.lang.Float.floatToIntBits(getFloat32Value()) != java.lang.Float.floatToIntBits( other.getFloat32Value())) return false; break; case 30: if (getDate32Value() != other.getDate32Value()) return false; break; case 31: if (!getTime32Value() .equals(other.getTime32Value())) return false; break; case 32: if (!getListValue() .equals(other.getListValue())) return false; break; case 33: if (!getFixedSizeListValue() .equals(other.getFixedSizeListValue())) return false; break; case 34: if (!getMapValue() .equals(other.getMapValue())) return false; break; case 35: if (!getBinaryValue() .equals(other.getBinaryValue())) return false; break; case 36: if (!getLargeBinaryValue() .equals(other.getLargeBinaryValue())) return false; break; case 37: if (!getFixedSizeBinaryValue() .equals(other.getFixedSizeBinaryValue())) return false; break; case 38: if (!getDecimal128Value() .equals(other.getDecimal128Value())) return false; break; case 39: if (!getDecimal256Value() .equals(other.getDecimal256Value())) return false; break; case 40: if (!getExtensionValue() .equals(other.getExtensionValue())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (valueCase_) { case 1: hash = (37 * hash) + NULL_VALUE_FIELD_NUMBER; hash = (53 * hash) + getNullValue().hashCode(); break; case 2: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBoolValue()); break; case 3: hash = (37 * hash) + FLOAT64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getFloat64Value())); break; case 4: hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInt64Value()); break; case 5: hash = (37 * hash) + LARGE_UTF8_VALUE_FIELD_NUMBER; hash = (53 * hash) + getLargeUtf8Value().hashCode(); break; case 6: hash = (37 * hash) + TIMESTAMP_VALUE_FIELD_NUMBER; hash = (53 * hash) + getTimestampValue().hashCode(); break; case 7: hash = (37 * hash) + DATE_64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDate64Value()); break; case 8: hash = (37 * hash) + STRUCT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStructValue().hashCode(); break; case 9: hash = (37 * hash) + LARGE_LIST_VALUE_FIELD_NUMBER; hash = (53 * hash) + getLargeListValue().hashCode(); break; case 10: hash = (37 * hash) + TIME64_VALUE_FIELD_NUMBER; hash = (53 * hash) + getTime64Value().hashCode(); break; case 16: hash = (37 * hash) + DURATION_SECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDurationSecondValue()); break; case 17: hash = (37 * hash) + DURATION_MILLISECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDurationMillisecondValue()); break; case 18: hash = (37 * hash) + DURATION_MICROSECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDurationMicrosecondValue()); break; case 19: hash = (37 * hash) + DURATION_NANOSECOND_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDurationNanosecondValue()); break; case 20: hash = (37 * hash) + UTF8_VALUE_FIELD_NUMBER; hash = (53 * hash) + getUtf8Value().hashCode(); break; case 21: hash = (37 * hash) + INT8_VALUE_FIELD_NUMBER; hash = (53 * hash) + getInt8Value(); break; case 22: hash = (37 * hash) + INT16_VALUE_FIELD_NUMBER; hash = (53 * hash) + getInt16Value(); break; case 23: hash = (37 * hash) + INT32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getInt32Value(); break; case 24: hash = (37 * hash) + UINT8_VALUE_FIELD_NUMBER; hash = (53 * hash) + getUint8Value(); break; case 25: hash = (37 * hash) + UINT16_VALUE_FIELD_NUMBER; hash = (53 * hash) + getUint16Value(); break; case 26: hash = (37 * hash) + UINT32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getUint32Value(); break; case 27: hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUint64Value()); break; case 28: hash = (37 * hash) + FLOAT16_VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFloat16Value()); break; case 29: hash = (37 * hash) + FLOAT32_VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFloat32Value()); break; case 30: hash = (37 * hash) + DATE_32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDate32Value(); break; case 31: hash = (37 * hash) + TIME32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getTime32Value().hashCode(); break; case 32: hash = (37 * hash) + LIST_VALUE_FIELD_NUMBER; hash = (53 * hash) + getListValue().hashCode(); break; case 33: hash = (37 * hash) + FIXED_SIZE_LIST_VALUE_FIELD_NUMBER; hash = (53 * hash) + getFixedSizeListValue().hashCode(); break; case 34: hash = (37 * hash) + MAP_VALUE_FIELD_NUMBER; hash = (53 * hash) + getMapValue().hashCode(); break; case 35: hash = (37 * hash) + BINARY_VALUE_FIELD_NUMBER; hash = (53 * hash) + getBinaryValue().hashCode(); break; case 36: hash = (37 * hash) + LARGE_BINARY_VALUE_FIELD_NUMBER; hash = (53 * hash) + getLargeBinaryValue().hashCode(); break; case 37: hash = (37 * hash) + FIXED_SIZE_BINARY_VALUE_FIELD_NUMBER; hash = (53 * hash) + getFixedSizeBinaryValue().hashCode(); break; case 38: hash = (37 * hash) + DECIMAL128_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDecimal128Value().hashCode(); break; case 39: hash = (37 * hash) + DECIMAL256_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDecimal256Value().hashCode(); break; case 40: hash = (37 * hash) + EXTENSION_VALUE_FIELD_NUMBER; hash = (53 * hash) + getExtensionValue().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue 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 ai.chalk.protos.chalk.arrow.v1.ScalarValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue 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 ai.chalk.protos.chalk.arrow.v1.ScalarValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue 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(ai.chalk.protos.chalk.arrow.v1.ScalarValue 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; } /** * Protobuf type {@code chalk.arrow.v1.ScalarValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.ScalarValue) ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.ScalarValue.class, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.ScalarValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; if (nullValueBuilder_ != null) { nullValueBuilder_.clear(); } if (timestampValueBuilder_ != null) { timestampValueBuilder_.clear(); } if (structValueBuilder_ != null) { structValueBuilder_.clear(); } if (largeListValueBuilder_ != null) { largeListValueBuilder_.clear(); } if (time64ValueBuilder_ != null) { time64ValueBuilder_.clear(); } if (time32ValueBuilder_ != null) { time32ValueBuilder_.clear(); } if (listValueBuilder_ != null) { listValueBuilder_.clear(); } if (fixedSizeListValueBuilder_ != null) { fixedSizeListValueBuilder_.clear(); } if (mapValueBuilder_ != null) { mapValueBuilder_.clear(); } if (fixedSizeBinaryValueBuilder_ != null) { fixedSizeBinaryValueBuilder_.clear(); } if (decimal128ValueBuilder_ != null) { decimal128ValueBuilder_.clear(); } if (decimal256ValueBuilder_ != null) { decimal256ValueBuilder_.clear(); } if (extensionValueBuilder_ != null) { extensionValueBuilder_.clear(); } valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_ScalarValue_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue build() { ai.chalk.protos.chalk.arrow.v1.ScalarValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue buildPartial() { ai.chalk.protos.chalk.arrow.v1.ScalarValue result = new ai.chalk.protos.chalk.arrow.v1.ScalarValue(this); if (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.ScalarValue result) { int from_bitField0_ = bitField0_; } private void buildPartial1(ai.chalk.protos.chalk.arrow.v1.ScalarValue result) { int from_bitField1_ = bitField1_; } private void buildPartialOneofs(ai.chalk.protos.chalk.arrow.v1.ScalarValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; if (valueCase_ == 1 && nullValueBuilder_ != null) { result.value_ = nullValueBuilder_.build(); } if (valueCase_ == 6 && timestampValueBuilder_ != null) { result.value_ = timestampValueBuilder_.build(); } if (valueCase_ == 8 && structValueBuilder_ != null) { result.value_ = structValueBuilder_.build(); } if (valueCase_ == 9 && largeListValueBuilder_ != null) { result.value_ = largeListValueBuilder_.build(); } if (valueCase_ == 10 && time64ValueBuilder_ != null) { result.value_ = time64ValueBuilder_.build(); } if (valueCase_ == 31 && time32ValueBuilder_ != null) { result.value_ = time32ValueBuilder_.build(); } if (valueCase_ == 32 && listValueBuilder_ != null) { result.value_ = listValueBuilder_.build(); } if (valueCase_ == 33 && fixedSizeListValueBuilder_ != null) { result.value_ = fixedSizeListValueBuilder_.build(); } if (valueCase_ == 34 && mapValueBuilder_ != null) { result.value_ = mapValueBuilder_.build(); } if (valueCase_ == 37 && fixedSizeBinaryValueBuilder_ != null) { result.value_ = fixedSizeBinaryValueBuilder_.build(); } if (valueCase_ == 38 && decimal128ValueBuilder_ != null) { result.value_ = decimal128ValueBuilder_.build(); } if (valueCase_ == 39 && decimal256ValueBuilder_ != null) { result.value_ = decimal256ValueBuilder_.build(); } if (valueCase_ == 40 && extensionValueBuilder_ != null) { result.value_ = extensionValueBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.ScalarValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.ScalarValue other) { if (other == ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()) return this; switch (other.getValueCase()) { case NULL_VALUE: { mergeNullValue(other.getNullValue()); break; } case BOOL_VALUE: { setBoolValue(other.getBoolValue()); break; } case FLOAT64_VALUE: { setFloat64Value(other.getFloat64Value()); break; } case INT64_VALUE: { setInt64Value(other.getInt64Value()); break; } case LARGE_UTF8_VALUE: { valueCase_ = 5; value_ = other.value_; onChanged(); break; } case TIMESTAMP_VALUE: { mergeTimestampValue(other.getTimestampValue()); break; } case DATE_64_VALUE: { setDate64Value(other.getDate64Value()); break; } case STRUCT_VALUE: { mergeStructValue(other.getStructValue()); break; } case LARGE_LIST_VALUE: { mergeLargeListValue(other.getLargeListValue()); break; } case TIME64_VALUE: { mergeTime64Value(other.getTime64Value()); break; } case DURATION_SECOND_VALUE: { setDurationSecondValue(other.getDurationSecondValue()); break; } case DURATION_MILLISECOND_VALUE: { setDurationMillisecondValue(other.getDurationMillisecondValue()); break; } case DURATION_MICROSECOND_VALUE: { setDurationMicrosecondValue(other.getDurationMicrosecondValue()); break; } case DURATION_NANOSECOND_VALUE: { setDurationNanosecondValue(other.getDurationNanosecondValue()); break; } case UTF8_VALUE: { valueCase_ = 20; value_ = other.value_; onChanged(); break; } case INT8_VALUE: { setInt8Value(other.getInt8Value()); break; } case INT16_VALUE: { setInt16Value(other.getInt16Value()); break; } case INT32_VALUE: { setInt32Value(other.getInt32Value()); break; } case UINT8_VALUE: { setUint8Value(other.getUint8Value()); break; } case UINT16_VALUE: { setUint16Value(other.getUint16Value()); break; } case UINT32_VALUE: { setUint32Value(other.getUint32Value()); break; } case UINT64_VALUE: { setUint64Value(other.getUint64Value()); break; } case FLOAT16_VALUE: { setFloat16Value(other.getFloat16Value()); break; } case FLOAT32_VALUE: { setFloat32Value(other.getFloat32Value()); break; } case DATE_32_VALUE: { setDate32Value(other.getDate32Value()); break; } case TIME32_VALUE: { mergeTime32Value(other.getTime32Value()); break; } case LIST_VALUE: { mergeListValue(other.getListValue()); break; } case FIXED_SIZE_LIST_VALUE: { mergeFixedSizeListValue(other.getFixedSizeListValue()); break; } case MAP_VALUE: { mergeMapValue(other.getMapValue()); break; } case BINARY_VALUE: { setBinaryValue(other.getBinaryValue()); break; } case LARGE_BINARY_VALUE: { setLargeBinaryValue(other.getLargeBinaryValue()); break; } case FIXED_SIZE_BINARY_VALUE: { mergeFixedSizeBinaryValue(other.getFixedSizeBinaryValue()); break; } case DECIMAL128_VALUE: { mergeDecimal128Value(other.getDecimal128Value()); break; } case DECIMAL256_VALUE: { mergeDecimal256Value(other.getDecimal256Value()); break; } case EXTENSION_VALUE: { mergeExtensionValue(other.getExtensionValue()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNullValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 1; break; } // case 10 case 16: { value_ = input.readBool(); valueCase_ = 2; break; } // case 16 case 25: { value_ = input.readDouble(); valueCase_ = 3; break; } // case 25 case 32: { value_ = input.readInt64(); valueCase_ = 4; break; } // case 32 case 42: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 5; value_ = s; break; } // case 42 case 50: { input.readMessage( getTimestampValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 6; break; } // case 50 case 56: { value_ = input.readInt64(); valueCase_ = 7; break; } // case 56 case 66: { input.readMessage( getStructValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 8; break; } // case 66 case 74: { input.readMessage( getLargeListValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 9; break; } // case 74 case 82: { input.readMessage( getTime64ValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 10; break; } // case 82 case 128: { value_ = input.readInt64(); valueCase_ = 16; break; } // case 128 case 136: { value_ = input.readInt64(); valueCase_ = 17; break; } // case 136 case 144: { value_ = input.readInt64(); valueCase_ = 18; break; } // case 144 case 152: { value_ = input.readInt64(); valueCase_ = 19; break; } // case 152 case 162: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 20; value_ = s; break; } // case 162 case 168: { value_ = input.readInt32(); valueCase_ = 21; break; } // case 168 case 176: { value_ = input.readInt32(); valueCase_ = 22; break; } // case 176 case 184: { value_ = input.readInt32(); valueCase_ = 23; break; } // case 184 case 192: { value_ = input.readUInt32(); valueCase_ = 24; break; } // case 192 case 200: { value_ = input.readUInt32(); valueCase_ = 25; break; } // case 200 case 208: { value_ = input.readUInt32(); valueCase_ = 26; break; } // case 208 case 216: { value_ = input.readUInt64(); valueCase_ = 27; break; } // case 216 case 229: { value_ = input.readFloat(); valueCase_ = 28; break; } // case 229 case 237: { value_ = input.readFloat(); valueCase_ = 29; break; } // case 237 case 240: { value_ = input.readInt32(); valueCase_ = 30; break; } // case 240 case 250: { input.readMessage( getTime32ValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 31; break; } // case 250 case 258: { input.readMessage( getListValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 32; break; } // case 258 case 266: { input.readMessage( getFixedSizeListValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 33; break; } // case 266 case 274: { input.readMessage( getMapValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 34; break; } // case 274 case 282: { value_ = input.readBytes(); valueCase_ = 35; break; } // case 282 case 290: { value_ = input.readBytes(); valueCase_ = 36; break; } // case 290 case 298: { input.readMessage( getFixedSizeBinaryValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 37; break; } // case 298 case 306: { input.readMessage( getDecimal128ValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 38; break; } // case 306 case 314: { input.readMessage( getDecimal256ValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 39; break; } // case 314 case 322: { input.readMessage( getExtensionValueFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 40; break; } // case 322 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; private int bitField1_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> nullValueBuilder_; /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> * @return Whether the nullValue field is set. */ @java.lang.Override public boolean hasNullValue() { return valueCase_ == 1; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> * @return The nullValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getNullValue() { if (nullValueBuilder_ == null) { if (valueCase_ == 1) { return (ai.chalk.protos.chalk.arrow.v1.ArrowType) value_; } return ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance(); } else { if (valueCase_ == 1) { return nullValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance(); } } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> */ public Builder setNullValue(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (nullValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { nullValueBuilder_.setMessage(value); } valueCase_ = 1; return this; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> */ public Builder setNullValue( ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder builderForValue) { if (nullValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { nullValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 1; return this; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> */ public Builder mergeNullValue(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (nullValueBuilder_ == null) { if (valueCase_ == 1 && value_ != ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ArrowType.newBuilder((ai.chalk.protos.chalk.arrow.v1.ArrowType) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 1) { nullValueBuilder_.mergeFrom(value); } else { nullValueBuilder_.setMessage(value); } } valueCase_ = 1; return this; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> */ public Builder clearNullValue() { if (nullValueBuilder_ == null) { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; } nullValueBuilder_.clear(); } return this; } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder getNullValueBuilder() { return getNullValueFieldBuilder().getBuilder(); } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getNullValueOrBuilder() { if ((valueCase_ == 1) && (nullValueBuilder_ != null)) { return nullValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 1) { return (ai.chalk.protos.chalk.arrow.v1.ArrowType) value_; } return ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance(); } } /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> getNullValueFieldBuilder() { if (nullValueBuilder_ == null) { if (!(valueCase_ == 1)) { value_ = ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance(); } nullValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ArrowType) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 1; onChanged(); return nullValueBuilder_; } /** * <code>bool bool_value = 2 [json_name = "boolValue"];</code> * @return Whether the boolValue field is set. */ public boolean hasBoolValue() { return valueCase_ == 2; } /** * <code>bool bool_value = 2 [json_name = "boolValue"];</code> * @return The boolValue. */ public boolean getBoolValue() { if (valueCase_ == 2) { return (java.lang.Boolean) value_; } return false; } /** * <code>bool bool_value = 2 [json_name = "boolValue"];</code> * @param value The boolValue to set. * @return This builder for chaining. */ public Builder setBoolValue(boolean value) { valueCase_ = 2; value_ = value; onChanged(); return this; } /** * <code>bool bool_value = 2 [json_name = "boolValue"];</code> * @return This builder for chaining. */ public Builder clearBoolValue() { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>double float64_value = 3 [json_name = "float64Value"];</code> * @return Whether the float64Value field is set. */ public boolean hasFloat64Value() { return valueCase_ == 3; } /** * <code>double float64_value = 3 [json_name = "float64Value"];</code> * @return The float64Value. */ public double getFloat64Value() { if (valueCase_ == 3) { return (java.lang.Double) value_; } return 0D; } /** * <code>double float64_value = 3 [json_name = "float64Value"];</code> * @param value The float64Value to set. * @return This builder for chaining. */ public Builder setFloat64Value(double value) { valueCase_ = 3; value_ = value; onChanged(); return this; } /** * <code>double float64_value = 3 [json_name = "float64Value"];</code> * @return This builder for chaining. */ public Builder clearFloat64Value() { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int64 int64_value = 4 [json_name = "int64Value"];</code> * @return Whether the int64Value field is set. */ public boolean hasInt64Value() { return valueCase_ == 4; } /** * <code>int64 int64_value = 4 [json_name = "int64Value"];</code> * @return The int64Value. */ public long getInt64Value() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 int64_value = 4 [json_name = "int64Value"];</code> * @param value The int64Value to set. * @return This builder for chaining. */ public Builder setInt64Value(long value) { valueCase_ = 4; value_ = value; onChanged(); return this; } /** * <code>int64 int64_value = 4 [json_name = "int64Value"];</code> * @return This builder for chaining. */ public Builder clearInt64Value() { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return Whether the largeUtf8Value field is set. */ @java.lang.Override public boolean hasLargeUtf8Value() { return valueCase_ == 5; } /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return The largeUtf8Value. */ @java.lang.Override public java.lang.String getLargeUtf8Value() { java.lang.Object ref = ""; if (valueCase_ == 5) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 5) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return The bytes for largeUtf8Value. */ @java.lang.Override public com.google.protobuf.ByteString getLargeUtf8ValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 5) { ref = value_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 5) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @param value The largeUtf8Value to set. * @return This builder for chaining. */ public Builder setLargeUtf8Value( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 5; value_ = value; onChanged(); return this; } /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return This builder for chaining. */ public Builder clearLargeUtf8Value() { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @param value The bytes for largeUtf8Value to set. * @return This builder for chaining. */ public Builder setLargeUtf8ValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 5; value_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue, ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValueOrBuilder> timestampValueBuilder_; /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> * @return Whether the timestampValue field is set. */ @java.lang.Override public boolean hasTimestampValue() { return valueCase_ == 6; } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> * @return The timestampValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue getTimestampValue() { if (timestampValueBuilder_ == null) { if (valueCase_ == 6) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.getDefaultInstance(); } else { if (valueCase_ == 6) { return timestampValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> */ public Builder setTimestampValue(ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue value) { if (timestampValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { timestampValueBuilder_.setMessage(value); } valueCase_ = 6; return this; } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> */ public Builder setTimestampValue( ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.Builder builderForValue) { if (timestampValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { timestampValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 6; return this; } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> */ public Builder mergeTimestampValue(ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue value) { if (timestampValueBuilder_ == null) { if (valueCase_ == 6 && value_ != ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.newBuilder((ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 6) { timestampValueBuilder_.mergeFrom(value); } else { timestampValueBuilder_.setMessage(value); } } valueCase_ = 6; return this; } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> */ public Builder clearTimestampValue() { if (timestampValueBuilder_ == null) { if (valueCase_ == 6) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 6) { valueCase_ = 0; value_ = null; } timestampValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.Builder getTimestampValueBuilder() { return getTimestampValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValueOrBuilder getTimestampValueOrBuilder() { if ((valueCase_ == 6) && (timestampValueBuilder_ != null)) { return timestampValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 6) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue, ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValueOrBuilder> getTimestampValueFieldBuilder() { if (timestampValueBuilder_ == null) { if (!(valueCase_ == 6)) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.getDefaultInstance(); } timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue, ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 6; onChanged(); return timestampValueBuilder_; } /** * <code>int64 date_64_value = 7 [json_name = "date64Value"];</code> * @return Whether the date64Value field is set. */ public boolean hasDate64Value() { return valueCase_ == 7; } /** * <code>int64 date_64_value = 7 [json_name = "date64Value"];</code> * @return The date64Value. */ public long getDate64Value() { if (valueCase_ == 7) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 date_64_value = 7 [json_name = "date64Value"];</code> * @param value The date64Value to set. * @return This builder for chaining. */ public Builder setDate64Value(long value) { valueCase_ = 7; value_ = value; onChanged(); return this; } /** * <code>int64 date_64_value = 7 [json_name = "date64Value"];</code> * @return This builder for chaining. */ public Builder clearDate64Value() { if (valueCase_ == 7) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.StructValue, ai.chalk.protos.chalk.arrow.v1.StructValue.Builder, ai.chalk.protos.chalk.arrow.v1.StructValueOrBuilder> structValueBuilder_; /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> * @return Whether the structValue field is set. */ @java.lang.Override public boolean hasStructValue() { return valueCase_ == 8; } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> * @return The structValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructValue getStructValue() { if (structValueBuilder_ == null) { if (valueCase_ == 8) { return (ai.chalk.protos.chalk.arrow.v1.StructValue) value_; } return ai.chalk.protos.chalk.arrow.v1.StructValue.getDefaultInstance(); } else { if (valueCase_ == 8) { return structValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.StructValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> */ public Builder setStructValue(ai.chalk.protos.chalk.arrow.v1.StructValue value) { if (structValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { structValueBuilder_.setMessage(value); } valueCase_ = 8; return this; } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> */ public Builder setStructValue( ai.chalk.protos.chalk.arrow.v1.StructValue.Builder builderForValue) { if (structValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { structValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 8; return this; } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> */ public Builder mergeStructValue(ai.chalk.protos.chalk.arrow.v1.StructValue value) { if (structValueBuilder_ == null) { if (valueCase_ == 8 && value_ != ai.chalk.protos.chalk.arrow.v1.StructValue.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.StructValue.newBuilder((ai.chalk.protos.chalk.arrow.v1.StructValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 8) { structValueBuilder_.mergeFrom(value); } else { structValueBuilder_.setMessage(value); } } valueCase_ = 8; return this; } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> */ public Builder clearStructValue() { if (structValueBuilder_ == null) { if (valueCase_ == 8) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 8) { valueCase_ = 0; value_ = null; } structValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.StructValue.Builder getStructValueBuilder() { return getStructValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructValueOrBuilder getStructValueOrBuilder() { if ((valueCase_ == 8) && (structValueBuilder_ != null)) { return structValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 8) { return (ai.chalk.protos.chalk.arrow.v1.StructValue) value_; } return ai.chalk.protos.chalk.arrow.v1.StructValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.StructValue, ai.chalk.protos.chalk.arrow.v1.StructValue.Builder, ai.chalk.protos.chalk.arrow.v1.StructValueOrBuilder> getStructValueFieldBuilder() { if (structValueBuilder_ == null) { if (!(valueCase_ == 8)) { value_ = ai.chalk.protos.chalk.arrow.v1.StructValue.getDefaultInstance(); } structValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.StructValue, ai.chalk.protos.chalk.arrow.v1.StructValue.Builder, ai.chalk.protos.chalk.arrow.v1.StructValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.StructValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 8; onChanged(); return structValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder> largeListValueBuilder_; /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> * @return Whether the largeListValue field is set. */ @java.lang.Override public boolean hasLargeListValue() { return valueCase_ == 9; } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> * @return The largeListValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getLargeListValue() { if (largeListValueBuilder_ == null) { if (valueCase_ == 9) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } else { if (valueCase_ == 9) { return largeListValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> */ public Builder setLargeListValue(ai.chalk.protos.chalk.arrow.v1.ScalarListValue value) { if (largeListValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { largeListValueBuilder_.setMessage(value); } valueCase_ = 9; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> */ public Builder setLargeListValue( ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder builderForValue) { if (largeListValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { largeListValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 9; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> */ public Builder mergeLargeListValue(ai.chalk.protos.chalk.arrow.v1.ScalarListValue value) { if (largeListValueBuilder_ == null) { if (valueCase_ == 9 && value_ != ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarListValue.newBuilder((ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 9) { largeListValueBuilder_.mergeFrom(value); } else { largeListValueBuilder_.setMessage(value); } } valueCase_ = 9; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> */ public Builder clearLargeListValue() { if (largeListValueBuilder_ == null) { if (valueCase_ == 9) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 9) { valueCase_ = 0; value_ = null; } largeListValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder getLargeListValueBuilder() { return getLargeListValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getLargeListValueOrBuilder() { if ((valueCase_ == 9) && (largeListValueBuilder_ != null)) { return largeListValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 9) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder> getLargeListValueFieldBuilder() { if (largeListValueBuilder_ == null) { if (!(valueCase_ == 9)) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } largeListValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 9; onChanged(); return largeListValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value, ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarTime64ValueOrBuilder> time64ValueBuilder_; /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> * @return Whether the time64Value field is set. */ @java.lang.Override public boolean hasTime64Value() { return valueCase_ == 10; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> * @return The time64Value. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value getTime64Value() { if (time64ValueBuilder_ == null) { if (valueCase_ == 10) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.getDefaultInstance(); } else { if (valueCase_ == 10) { return time64ValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.getDefaultInstance(); } } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> */ public Builder setTime64Value(ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value value) { if (time64ValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { time64ValueBuilder_.setMessage(value); } valueCase_ = 10; return this; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> */ public Builder setTime64Value( ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.Builder builderForValue) { if (time64ValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { time64ValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 10; return this; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> */ public Builder mergeTime64Value(ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value value) { if (time64ValueBuilder_ == null) { if (valueCase_ == 10 && value_ != ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.newBuilder((ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 10) { time64ValueBuilder_.mergeFrom(value); } else { time64ValueBuilder_.setMessage(value); } } valueCase_ = 10; return this; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> */ public Builder clearTime64Value() { if (time64ValueBuilder_ == null) { if (valueCase_ == 10) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 10) { valueCase_ = 0; value_ = null; } time64ValueBuilder_.clear(); } return this; } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.Builder getTime64ValueBuilder() { return getTime64ValueFieldBuilder().getBuilder(); } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime64ValueOrBuilder getTime64ValueOrBuilder() { if ((valueCase_ == 10) && (time64ValueBuilder_ != null)) { return time64ValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 10) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.getDefaultInstance(); } } /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value, ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarTime64ValueOrBuilder> getTime64ValueFieldBuilder() { if (time64ValueBuilder_ == null) { if (!(valueCase_ == 10)) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.getDefaultInstance(); } time64ValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value, ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarTime64ValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 10; onChanged(); return time64ValueBuilder_; } /** * <code>int64 duration_second_value = 16 [json_name = "durationSecondValue"];</code> * @return Whether the durationSecondValue field is set. */ public boolean hasDurationSecondValue() { return valueCase_ == 16; } /** * <code>int64 duration_second_value = 16 [json_name = "durationSecondValue"];</code> * @return The durationSecondValue. */ public long getDurationSecondValue() { if (valueCase_ == 16) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 duration_second_value = 16 [json_name = "durationSecondValue"];</code> * @param value The durationSecondValue to set. * @return This builder for chaining. */ public Builder setDurationSecondValue(long value) { valueCase_ = 16; value_ = value; onChanged(); return this; } /** * <code>int64 duration_second_value = 16 [json_name = "durationSecondValue"];</code> * @return This builder for chaining. */ public Builder clearDurationSecondValue() { if (valueCase_ == 16) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int64 duration_millisecond_value = 17 [json_name = "durationMillisecondValue"];</code> * @return Whether the durationMillisecondValue field is set. */ public boolean hasDurationMillisecondValue() { return valueCase_ == 17; } /** * <code>int64 duration_millisecond_value = 17 [json_name = "durationMillisecondValue"];</code> * @return The durationMillisecondValue. */ public long getDurationMillisecondValue() { if (valueCase_ == 17) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 duration_millisecond_value = 17 [json_name = "durationMillisecondValue"];</code> * @param value The durationMillisecondValue to set. * @return This builder for chaining. */ public Builder setDurationMillisecondValue(long value) { valueCase_ = 17; value_ = value; onChanged(); return this; } /** * <code>int64 duration_millisecond_value = 17 [json_name = "durationMillisecondValue"];</code> * @return This builder for chaining. */ public Builder clearDurationMillisecondValue() { if (valueCase_ == 17) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int64 duration_microsecond_value = 18 [json_name = "durationMicrosecondValue"];</code> * @return Whether the durationMicrosecondValue field is set. */ public boolean hasDurationMicrosecondValue() { return valueCase_ == 18; } /** * <code>int64 duration_microsecond_value = 18 [json_name = "durationMicrosecondValue"];</code> * @return The durationMicrosecondValue. */ public long getDurationMicrosecondValue() { if (valueCase_ == 18) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 duration_microsecond_value = 18 [json_name = "durationMicrosecondValue"];</code> * @param value The durationMicrosecondValue to set. * @return This builder for chaining. */ public Builder setDurationMicrosecondValue(long value) { valueCase_ = 18; value_ = value; onChanged(); return this; } /** * <code>int64 duration_microsecond_value = 18 [json_name = "durationMicrosecondValue"];</code> * @return This builder for chaining. */ public Builder clearDurationMicrosecondValue() { if (valueCase_ == 18) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int64 duration_nanosecond_value = 19 [json_name = "durationNanosecondValue"];</code> * @return Whether the durationNanosecondValue field is set. */ public boolean hasDurationNanosecondValue() { return valueCase_ == 19; } /** * <code>int64 duration_nanosecond_value = 19 [json_name = "durationNanosecondValue"];</code> * @return The durationNanosecondValue. */ public long getDurationNanosecondValue() { if (valueCase_ == 19) { return (java.lang.Long) value_; } return 0L; } /** * <code>int64 duration_nanosecond_value = 19 [json_name = "durationNanosecondValue"];</code> * @param value The durationNanosecondValue to set. * @return This builder for chaining. */ public Builder setDurationNanosecondValue(long value) { valueCase_ = 19; value_ = value; onChanged(); return this; } /** * <code>int64 duration_nanosecond_value = 19 [json_name = "durationNanosecondValue"];</code> * @return This builder for chaining. */ public Builder clearDurationNanosecondValue() { if (valueCase_ == 19) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return Whether the utf8Value field is set. */ @java.lang.Override public boolean hasUtf8Value() { return valueCase_ == 20; } /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return The utf8Value. */ @java.lang.Override public java.lang.String getUtf8Value() { java.lang.Object ref = ""; if (valueCase_ == 20) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 20) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return The bytes for utf8Value. */ @java.lang.Override public com.google.protobuf.ByteString getUtf8ValueBytes() { java.lang.Object ref = ""; if (valueCase_ == 20) { ref = value_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 20) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @param value The utf8Value to set. * @return This builder for chaining. */ public Builder setUtf8Value( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 20; value_ = value; onChanged(); return this; } /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return This builder for chaining. */ public Builder clearUtf8Value() { if (valueCase_ == 20) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @param value The bytes for utf8Value to set. * @return This builder for chaining. */ public Builder setUtf8ValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 20; value_ = value; onChanged(); return this; } /** * <code>int32 int8_value = 21 [json_name = "int8Value"];</code> * @return Whether the int8Value field is set. */ public boolean hasInt8Value() { return valueCase_ == 21; } /** * <code>int32 int8_value = 21 [json_name = "int8Value"];</code> * @return The int8Value. */ public int getInt8Value() { if (valueCase_ == 21) { return (java.lang.Integer) value_; } return 0; } /** * <code>int32 int8_value = 21 [json_name = "int8Value"];</code> * @param value The int8Value to set. * @return This builder for chaining. */ public Builder setInt8Value(int value) { valueCase_ = 21; value_ = value; onChanged(); return this; } /** * <code>int32 int8_value = 21 [json_name = "int8Value"];</code> * @return This builder for chaining. */ public Builder clearInt8Value() { if (valueCase_ == 21) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int32 int16_value = 22 [json_name = "int16Value"];</code> * @return Whether the int16Value field is set. */ public boolean hasInt16Value() { return valueCase_ == 22; } /** * <code>int32 int16_value = 22 [json_name = "int16Value"];</code> * @return The int16Value. */ public int getInt16Value() { if (valueCase_ == 22) { return (java.lang.Integer) value_; } return 0; } /** * <code>int32 int16_value = 22 [json_name = "int16Value"];</code> * @param value The int16Value to set. * @return This builder for chaining. */ public Builder setInt16Value(int value) { valueCase_ = 22; value_ = value; onChanged(); return this; } /** * <code>int32 int16_value = 22 [json_name = "int16Value"];</code> * @return This builder for chaining. */ public Builder clearInt16Value() { if (valueCase_ == 22) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int32 int32_value = 23 [json_name = "int32Value"];</code> * @return Whether the int32Value field is set. */ public boolean hasInt32Value() { return valueCase_ == 23; } /** * <code>int32 int32_value = 23 [json_name = "int32Value"];</code> * @return The int32Value. */ public int getInt32Value() { if (valueCase_ == 23) { return (java.lang.Integer) value_; } return 0; } /** * <code>int32 int32_value = 23 [json_name = "int32Value"];</code> * @param value The int32Value to set. * @return This builder for chaining. */ public Builder setInt32Value(int value) { valueCase_ = 23; value_ = value; onChanged(); return this; } /** * <code>int32 int32_value = 23 [json_name = "int32Value"];</code> * @return This builder for chaining. */ public Builder clearInt32Value() { if (valueCase_ == 23) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>uint32 uint8_value = 24 [json_name = "uint8Value"];</code> * @return Whether the uint8Value field is set. */ public boolean hasUint8Value() { return valueCase_ == 24; } /** * <code>uint32 uint8_value = 24 [json_name = "uint8Value"];</code> * @return The uint8Value. */ public int getUint8Value() { if (valueCase_ == 24) { return (java.lang.Integer) value_; } return 0; } /** * <code>uint32 uint8_value = 24 [json_name = "uint8Value"];</code> * @param value The uint8Value to set. * @return This builder for chaining. */ public Builder setUint8Value(int value) { valueCase_ = 24; value_ = value; onChanged(); return this; } /** * <code>uint32 uint8_value = 24 [json_name = "uint8Value"];</code> * @return This builder for chaining. */ public Builder clearUint8Value() { if (valueCase_ == 24) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>uint32 uint16_value = 25 [json_name = "uint16Value"];</code> * @return Whether the uint16Value field is set. */ public boolean hasUint16Value() { return valueCase_ == 25; } /** * <code>uint32 uint16_value = 25 [json_name = "uint16Value"];</code> * @return The uint16Value. */ public int getUint16Value() { if (valueCase_ == 25) { return (java.lang.Integer) value_; } return 0; } /** * <code>uint32 uint16_value = 25 [json_name = "uint16Value"];</code> * @param value The uint16Value to set. * @return This builder for chaining. */ public Builder setUint16Value(int value) { valueCase_ = 25; value_ = value; onChanged(); return this; } /** * <code>uint32 uint16_value = 25 [json_name = "uint16Value"];</code> * @return This builder for chaining. */ public Builder clearUint16Value() { if (valueCase_ == 25) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>uint32 uint32_value = 26 [json_name = "uint32Value"];</code> * @return Whether the uint32Value field is set. */ public boolean hasUint32Value() { return valueCase_ == 26; } /** * <code>uint32 uint32_value = 26 [json_name = "uint32Value"];</code> * @return The uint32Value. */ public int getUint32Value() { if (valueCase_ == 26) { return (java.lang.Integer) value_; } return 0; } /** * <code>uint32 uint32_value = 26 [json_name = "uint32Value"];</code> * @param value The uint32Value to set. * @return This builder for chaining. */ public Builder setUint32Value(int value) { valueCase_ = 26; value_ = value; onChanged(); return this; } /** * <code>uint32 uint32_value = 26 [json_name = "uint32Value"];</code> * @return This builder for chaining. */ public Builder clearUint32Value() { if (valueCase_ == 26) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>uint64 uint64_value = 27 [json_name = "uint64Value"];</code> * @return Whether the uint64Value field is set. */ public boolean hasUint64Value() { return valueCase_ == 27; } /** * <code>uint64 uint64_value = 27 [json_name = "uint64Value"];</code> * @return The uint64Value. */ public long getUint64Value() { if (valueCase_ == 27) { return (java.lang.Long) value_; } return 0L; } /** * <code>uint64 uint64_value = 27 [json_name = "uint64Value"];</code> * @param value The uint64Value to set. * @return This builder for chaining. */ public Builder setUint64Value(long value) { valueCase_ = 27; value_ = value; onChanged(); return this; } /** * <code>uint64 uint64_value = 27 [json_name = "uint64Value"];</code> * @return This builder for chaining. */ public Builder clearUint64Value() { if (valueCase_ == 27) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>float float16_value = 28 [json_name = "float16Value"];</code> * @return Whether the float16Value field is set. */ public boolean hasFloat16Value() { return valueCase_ == 28; } /** * <code>float float16_value = 28 [json_name = "float16Value"];</code> * @return The float16Value. */ public float getFloat16Value() { if (valueCase_ == 28) { return (java.lang.Float) value_; } return 0F; } /** * <code>float float16_value = 28 [json_name = "float16Value"];</code> * @param value The float16Value to set. * @return This builder for chaining. */ public Builder setFloat16Value(float value) { valueCase_ = 28; value_ = value; onChanged(); return this; } /** * <code>float float16_value = 28 [json_name = "float16Value"];</code> * @return This builder for chaining. */ public Builder clearFloat16Value() { if (valueCase_ == 28) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>float float32_value = 29 [json_name = "float32Value"];</code> * @return Whether the float32Value field is set. */ public boolean hasFloat32Value() { return valueCase_ == 29; } /** * <code>float float32_value = 29 [json_name = "float32Value"];</code> * @return The float32Value. */ public float getFloat32Value() { if (valueCase_ == 29) { return (java.lang.Float) value_; } return 0F; } /** * <code>float float32_value = 29 [json_name = "float32Value"];</code> * @param value The float32Value to set. * @return This builder for chaining. */ public Builder setFloat32Value(float value) { valueCase_ = 29; value_ = value; onChanged(); return this; } /** * <code>float float32_value = 29 [json_name = "float32Value"];</code> * @return This builder for chaining. */ public Builder clearFloat32Value() { if (valueCase_ == 29) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>int32 date_32_value = 30 [json_name = "date32Value"];</code> * @return Whether the date32Value field is set. */ public boolean hasDate32Value() { return valueCase_ == 30; } /** * <code>int32 date_32_value = 30 [json_name = "date32Value"];</code> * @return The date32Value. */ public int getDate32Value() { if (valueCase_ == 30) { return (java.lang.Integer) value_; } return 0; } /** * <code>int32 date_32_value = 30 [json_name = "date32Value"];</code> * @param value The date32Value to set. * @return This builder for chaining. */ public Builder setDate32Value(int value) { valueCase_ = 30; value_ = value; onChanged(); return this; } /** * <code>int32 date_32_value = 30 [json_name = "date32Value"];</code> * @return This builder for chaining. */ public Builder clearDate32Value() { if (valueCase_ == 30) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value, ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarTime32ValueOrBuilder> time32ValueBuilder_; /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> * @return Whether the time32Value field is set. */ @java.lang.Override public boolean hasTime32Value() { return valueCase_ == 31; } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> * @return The time32Value. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value getTime32Value() { if (time32ValueBuilder_ == null) { if (valueCase_ == 31) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.getDefaultInstance(); } else { if (valueCase_ == 31) { return time32ValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> */ public Builder setTime32Value(ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value value) { if (time32ValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { time32ValueBuilder_.setMessage(value); } valueCase_ = 31; return this; } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> */ public Builder setTime32Value( ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.Builder builderForValue) { if (time32ValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { time32ValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 31; return this; } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> */ public Builder mergeTime32Value(ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value value) { if (time32ValueBuilder_ == null) { if (valueCase_ == 31 && value_ != ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.newBuilder((ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 31) { time32ValueBuilder_.mergeFrom(value); } else { time32ValueBuilder_.setMessage(value); } } valueCase_ = 31; return this; } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> */ public Builder clearTime32Value() { if (time32ValueBuilder_ == null) { if (valueCase_ == 31) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 31) { valueCase_ = 0; value_ = null; } time32ValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.Builder getTime32ValueBuilder() { return getTime32ValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarTime32ValueOrBuilder getTime32ValueOrBuilder() { if ((valueCase_ == 31) && (time32ValueBuilder_ != null)) { return time32ValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 31) { return (ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value, ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarTime32ValueOrBuilder> getTime32ValueFieldBuilder() { if (time32ValueBuilder_ == null) { if (!(valueCase_ == 31)) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.getDefaultInstance(); } time32ValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value, ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarTime32ValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 31; onChanged(); return time32ValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder> listValueBuilder_; /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> * @return Whether the listValue field is set. */ @java.lang.Override public boolean hasListValue() { return valueCase_ == 32; } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> * @return The listValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getListValue() { if (listValueBuilder_ == null) { if (valueCase_ == 32) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } else { if (valueCase_ == 32) { return listValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> */ public Builder setListValue(ai.chalk.protos.chalk.arrow.v1.ScalarListValue value) { if (listValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { listValueBuilder_.setMessage(value); } valueCase_ = 32; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> */ public Builder setListValue( ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder builderForValue) { if (listValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { listValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 32; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> */ public Builder mergeListValue(ai.chalk.protos.chalk.arrow.v1.ScalarListValue value) { if (listValueBuilder_ == null) { if (valueCase_ == 32 && value_ != ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarListValue.newBuilder((ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 32) { listValueBuilder_.mergeFrom(value); } else { listValueBuilder_.setMessage(value); } } valueCase_ = 32; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> */ public Builder clearListValue() { if (listValueBuilder_ == null) { if (valueCase_ == 32) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 32) { valueCase_ = 0; value_ = null; } listValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder getListValueBuilder() { return getListValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getListValueOrBuilder() { if ((valueCase_ == 32) && (listValueBuilder_ != null)) { return listValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 32) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder> getListValueFieldBuilder() { if (listValueBuilder_ == null) { if (!(valueCase_ == 32)) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } listValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 32; onChanged(); return listValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder> fixedSizeListValueBuilder_; /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> * @return Whether the fixedSizeListValue field is set. */ @java.lang.Override public boolean hasFixedSizeListValue() { return valueCase_ == 33; } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> * @return The fixedSizeListValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getFixedSizeListValue() { if (fixedSizeListValueBuilder_ == null) { if (valueCase_ == 33) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } else { if (valueCase_ == 33) { return fixedSizeListValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> */ public Builder setFixedSizeListValue(ai.chalk.protos.chalk.arrow.v1.ScalarListValue value) { if (fixedSizeListValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { fixedSizeListValueBuilder_.setMessage(value); } valueCase_ = 33; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> */ public Builder setFixedSizeListValue( ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder builderForValue) { if (fixedSizeListValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { fixedSizeListValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 33; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> */ public Builder mergeFixedSizeListValue(ai.chalk.protos.chalk.arrow.v1.ScalarListValue value) { if (fixedSizeListValueBuilder_ == null) { if (valueCase_ == 33 && value_ != ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarListValue.newBuilder((ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 33) { fixedSizeListValueBuilder_.mergeFrom(value); } else { fixedSizeListValueBuilder_.setMessage(value); } } valueCase_ = 33; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> */ public Builder clearFixedSizeListValue() { if (fixedSizeListValueBuilder_ == null) { if (valueCase_ == 33) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 33) { valueCase_ = 0; value_ = null; } fixedSizeListValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder getFixedSizeListValueBuilder() { return getFixedSizeListValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getFixedSizeListValueOrBuilder() { if ((valueCase_ == 33) && (fixedSizeListValueBuilder_ != null)) { return fixedSizeListValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 33) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder> getFixedSizeListValueFieldBuilder() { if (fixedSizeListValueBuilder_ == null) { if (!(valueCase_ == 33)) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } fixedSizeListValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 33; onChanged(); return fixedSizeListValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder> mapValueBuilder_; /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> * @return Whether the mapValue field is set. */ @java.lang.Override public boolean hasMapValue() { return valueCase_ == 34; } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> * @return The mapValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValue getMapValue() { if (mapValueBuilder_ == null) { if (valueCase_ == 34) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } else { if (valueCase_ == 34) { return mapValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> */ public Builder setMapValue(ai.chalk.protos.chalk.arrow.v1.ScalarListValue value) { if (mapValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { mapValueBuilder_.setMessage(value); } valueCase_ = 34; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> */ public Builder setMapValue( ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder builderForValue) { if (mapValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { mapValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 34; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> */ public Builder mergeMapValue(ai.chalk.protos.chalk.arrow.v1.ScalarListValue value) { if (mapValueBuilder_ == null) { if (valueCase_ == 34 && value_ != ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarListValue.newBuilder((ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 34) { mapValueBuilder_.mergeFrom(value); } else { mapValueBuilder_.setMessage(value); } } valueCase_ = 34; return this; } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> */ public Builder clearMapValue() { if (mapValueBuilder_ == null) { if (valueCase_ == 34) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 34) { valueCase_ = 0; value_ = null; } mapValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder getMapValueBuilder() { return getMapValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getMapValueOrBuilder() { if ((valueCase_ == 34) && (mapValueBuilder_ != null)) { return mapValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 34) { return (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder> getMapValueFieldBuilder() { if (mapValueBuilder_ == null) { if (!(valueCase_ == 34)) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarListValue.getDefaultInstance(); } mapValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarListValue, ai.chalk.protos.chalk.arrow.v1.ScalarListValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ScalarListValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 34; onChanged(); return mapValueBuilder_; } /** * <code>bytes binary_value = 35 [json_name = "binaryValue"];</code> * @return Whether the binaryValue field is set. */ public boolean hasBinaryValue() { return valueCase_ == 35; } /** * <code>bytes binary_value = 35 [json_name = "binaryValue"];</code> * @return The binaryValue. */ public com.google.protobuf.ByteString getBinaryValue() { if (valueCase_ == 35) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } /** * <code>bytes binary_value = 35 [json_name = "binaryValue"];</code> * @param value The binaryValue to set. * @return This builder for chaining. */ public Builder setBinaryValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 35; value_ = value; onChanged(); return this; } /** * <code>bytes binary_value = 35 [json_name = "binaryValue"];</code> * @return This builder for chaining. */ public Builder clearBinaryValue() { if (valueCase_ == 35) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>bytes large_binary_value = 36 [json_name = "largeBinaryValue"];</code> * @return Whether the largeBinaryValue field is set. */ public boolean hasLargeBinaryValue() { return valueCase_ == 36; } /** * <code>bytes large_binary_value = 36 [json_name = "largeBinaryValue"];</code> * @return The largeBinaryValue. */ public com.google.protobuf.ByteString getLargeBinaryValue() { if (valueCase_ == 36) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } /** * <code>bytes large_binary_value = 36 [json_name = "largeBinaryValue"];</code> * @param value The largeBinaryValue to set. * @return This builder for chaining. */ public Builder setLargeBinaryValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 36; value_ = value; onChanged(); return this; } /** * <code>bytes large_binary_value = 36 [json_name = "largeBinaryValue"];</code> * @return This builder for chaining. */ public Builder clearLargeBinaryValue() { if (valueCase_ == 36) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary, ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinaryOrBuilder> fixedSizeBinaryValueBuilder_; /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> * @return Whether the fixedSizeBinaryValue field is set. */ @java.lang.Override public boolean hasFixedSizeBinaryValue() { return valueCase_ == 37; } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> * @return The fixedSizeBinaryValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary getFixedSizeBinaryValue() { if (fixedSizeBinaryValueBuilder_ == null) { if (valueCase_ == 37) { return (ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.getDefaultInstance(); } else { if (valueCase_ == 37) { return fixedSizeBinaryValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> */ public Builder setFixedSizeBinaryValue(ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary value) { if (fixedSizeBinaryValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { fixedSizeBinaryValueBuilder_.setMessage(value); } valueCase_ = 37; return this; } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> */ public Builder setFixedSizeBinaryValue( ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.Builder builderForValue) { if (fixedSizeBinaryValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { fixedSizeBinaryValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 37; return this; } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> */ public Builder mergeFixedSizeBinaryValue(ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary value) { if (fixedSizeBinaryValueBuilder_ == null) { if (valueCase_ == 37 && value_ != ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.newBuilder((ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 37) { fixedSizeBinaryValueBuilder_.mergeFrom(value); } else { fixedSizeBinaryValueBuilder_.setMessage(value); } } valueCase_ = 37; return this; } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> */ public Builder clearFixedSizeBinaryValue() { if (fixedSizeBinaryValueBuilder_ == null) { if (valueCase_ == 37) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 37) { valueCase_ = 0; value_ = null; } fixedSizeBinaryValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.Builder getFixedSizeBinaryValueBuilder() { return getFixedSizeBinaryValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinaryOrBuilder getFixedSizeBinaryValueOrBuilder() { if ((valueCase_ == 37) && (fixedSizeBinaryValueBuilder_ != null)) { return fixedSizeBinaryValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 37) { return (ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) value_; } return ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary, ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinaryOrBuilder> getFixedSizeBinaryValueFieldBuilder() { if (fixedSizeBinaryValueBuilder_ == null) { if (!(valueCase_ == 37)) { value_ = ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.getDefaultInstance(); } fixedSizeBinaryValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary, ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinaryOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 37; onChanged(); return fixedSizeBinaryValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.DecimalValue, ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder> decimal128ValueBuilder_; /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> * @return Whether the decimal128Value field is set. */ @java.lang.Override public boolean hasDecimal128Value() { return valueCase_ == 38; } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> * @return The decimal128Value. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValue getDecimal128Value() { if (decimal128ValueBuilder_ == null) { if (valueCase_ == 38) { return (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_; } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } else { if (valueCase_ == 38) { return decimal128ValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> */ public Builder setDecimal128Value(ai.chalk.protos.chalk.arrow.v1.DecimalValue value) { if (decimal128ValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { decimal128ValueBuilder_.setMessage(value); } valueCase_ = 38; return this; } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> */ public Builder setDecimal128Value( ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder builderForValue) { if (decimal128ValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { decimal128ValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 38; return this; } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> */ public Builder mergeDecimal128Value(ai.chalk.protos.chalk.arrow.v1.DecimalValue value) { if (decimal128ValueBuilder_ == null) { if (valueCase_ == 38 && value_ != ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.DecimalValue.newBuilder((ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 38) { decimal128ValueBuilder_.mergeFrom(value); } else { decimal128ValueBuilder_.setMessage(value); } } valueCase_ = 38; return this; } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> */ public Builder clearDecimal128Value() { if (decimal128ValueBuilder_ == null) { if (valueCase_ == 38) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 38) { valueCase_ = 0; value_ = null; } decimal128ValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> */ public ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder getDecimal128ValueBuilder() { return getDecimal128ValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder getDecimal128ValueOrBuilder() { if ((valueCase_ == 38) && (decimal128ValueBuilder_ != null)) { return decimal128ValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 38) { return (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_; } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.DecimalValue, ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder> getDecimal128ValueFieldBuilder() { if (decimal128ValueBuilder_ == null) { if (!(valueCase_ == 38)) { value_ = ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } decimal128ValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.DecimalValue, ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 38; onChanged(); return decimal128ValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.DecimalValue, ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder> decimal256ValueBuilder_; /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> * @return Whether the decimal256Value field is set. */ @java.lang.Override public boolean hasDecimal256Value() { return valueCase_ == 39; } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> * @return The decimal256Value. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValue getDecimal256Value() { if (decimal256ValueBuilder_ == null) { if (valueCase_ == 39) { return (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_; } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } else { if (valueCase_ == 39) { return decimal256ValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> */ public Builder setDecimal256Value(ai.chalk.protos.chalk.arrow.v1.DecimalValue value) { if (decimal256ValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { decimal256ValueBuilder_.setMessage(value); } valueCase_ = 39; return this; } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> */ public Builder setDecimal256Value( ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder builderForValue) { if (decimal256ValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { decimal256ValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 39; return this; } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> */ public Builder mergeDecimal256Value(ai.chalk.protos.chalk.arrow.v1.DecimalValue value) { if (decimal256ValueBuilder_ == null) { if (valueCase_ == 39 && value_ != ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.DecimalValue.newBuilder((ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 39) { decimal256ValueBuilder_.mergeFrom(value); } else { decimal256ValueBuilder_.setMessage(value); } } valueCase_ = 39; return this; } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> */ public Builder clearDecimal256Value() { if (decimal256ValueBuilder_ == null) { if (valueCase_ == 39) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 39) { valueCase_ = 0; value_ = null; } decimal256ValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> */ public ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder getDecimal256ValueBuilder() { return getDecimal256ValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder getDecimal256ValueOrBuilder() { if ((valueCase_ == 39) && (decimal256ValueBuilder_ != null)) { return decimal256ValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 39) { return (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_; } return ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.DecimalValue, ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder> getDecimal256ValueFieldBuilder() { if (decimal256ValueBuilder_ == null) { if (!(valueCase_ == 39)) { value_ = ai.chalk.protos.chalk.arrow.v1.DecimalValue.getDefaultInstance(); } decimal256ValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.DecimalValue, ai.chalk.protos.chalk.arrow.v1.DecimalValue.Builder, ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.DecimalValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 39; onChanged(); return decimal256ValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ExtensionValue, ai.chalk.protos.chalk.arrow.v1.ExtensionValue.Builder, ai.chalk.protos.chalk.arrow.v1.ExtensionValueOrBuilder> extensionValueBuilder_; /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> * @return Whether the extensionValue field is set. */ @java.lang.Override public boolean hasExtensionValue() { return valueCase_ == 40; } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> * @return The extensionValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionValue getExtensionValue() { if (extensionValueBuilder_ == null) { if (valueCase_ == 40) { return (ai.chalk.protos.chalk.arrow.v1.ExtensionValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ExtensionValue.getDefaultInstance(); } else { if (valueCase_ == 40) { return extensionValueBuilder_.getMessage(); } return ai.chalk.protos.chalk.arrow.v1.ExtensionValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> */ public Builder setExtensionValue(ai.chalk.protos.chalk.arrow.v1.ExtensionValue value) { if (extensionValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { extensionValueBuilder_.setMessage(value); } valueCase_ = 40; return this; } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> */ public Builder setExtensionValue( ai.chalk.protos.chalk.arrow.v1.ExtensionValue.Builder builderForValue) { if (extensionValueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { extensionValueBuilder_.setMessage(builderForValue.build()); } valueCase_ = 40; return this; } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> */ public Builder mergeExtensionValue(ai.chalk.protos.chalk.arrow.v1.ExtensionValue value) { if (extensionValueBuilder_ == null) { if (valueCase_ == 40 && value_ != ai.chalk.protos.chalk.arrow.v1.ExtensionValue.getDefaultInstance()) { value_ = ai.chalk.protos.chalk.arrow.v1.ExtensionValue.newBuilder((ai.chalk.protos.chalk.arrow.v1.ExtensionValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 40) { extensionValueBuilder_.mergeFrom(value); } else { extensionValueBuilder_.setMessage(value); } } valueCase_ = 40; return this; } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> */ public Builder clearExtensionValue() { if (extensionValueBuilder_ == null) { if (valueCase_ == 40) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 40) { valueCase_ = 0; value_ = null; } extensionValueBuilder_.clear(); } return this; } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ExtensionValue.Builder getExtensionValueBuilder() { return getExtensionValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ExtensionValueOrBuilder getExtensionValueOrBuilder() { if ((valueCase_ == 40) && (extensionValueBuilder_ != null)) { return extensionValueBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 40) { return (ai.chalk.protos.chalk.arrow.v1.ExtensionValue) value_; } return ai.chalk.protos.chalk.arrow.v1.ExtensionValue.getDefaultInstance(); } } /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ExtensionValue, ai.chalk.protos.chalk.arrow.v1.ExtensionValue.Builder, ai.chalk.protos.chalk.arrow.v1.ExtensionValueOrBuilder> getExtensionValueFieldBuilder() { if (extensionValueBuilder_ == null) { if (!(valueCase_ == 40)) { value_ = ai.chalk.protos.chalk.arrow.v1.ExtensionValue.getDefaultInstance(); } extensionValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ExtensionValue, ai.chalk.protos.chalk.arrow.v1.ExtensionValue.Builder, ai.chalk.protos.chalk.arrow.v1.ExtensionValueOrBuilder>( (ai.chalk.protos.chalk.arrow.v1.ExtensionValue) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 40; onChanged(); return extensionValueBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.ScalarValue) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.ScalarValue) private static final ai.chalk.protos.chalk.arrow.v1.ScalarValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.ScalarValue(); } public static ai.chalk.protos.chalk.arrow.v1.ScalarValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ScalarValue> PARSER = new com.google.protobuf.AbstractParser<ScalarValue>() { @java.lang.Override public ScalarValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<ScalarValue> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ScalarValue> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/ScalarValueOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface ScalarValueOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.ScalarValue) com.google.protobuf.MessageOrBuilder { /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> * @return Whether the nullValue field is set. */ boolean hasNullValue(); /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> * @return The nullValue. */ ai.chalk.protos.chalk.arrow.v1.ArrowType getNullValue(); /** * <pre> * Group popular types at the top * to save space in the serialized * message. * </pre> * * <code>.chalk.arrow.v1.ArrowType null_value = 1 [json_name = "nullValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getNullValueOrBuilder(); /** * <code>bool bool_value = 2 [json_name = "boolValue"];</code> * @return Whether the boolValue field is set. */ boolean hasBoolValue(); /** * <code>bool bool_value = 2 [json_name = "boolValue"];</code> * @return The boolValue. */ boolean getBoolValue(); /** * <code>double float64_value = 3 [json_name = "float64Value"];</code> * @return Whether the float64Value field is set. */ boolean hasFloat64Value(); /** * <code>double float64_value = 3 [json_name = "float64Value"];</code> * @return The float64Value. */ double getFloat64Value(); /** * <code>int64 int64_value = 4 [json_name = "int64Value"];</code> * @return Whether the int64Value field is set. */ boolean hasInt64Value(); /** * <code>int64 int64_value = 4 [json_name = "int64Value"];</code> * @return The int64Value. */ long getInt64Value(); /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return Whether the largeUtf8Value field is set. */ boolean hasLargeUtf8Value(); /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return The largeUtf8Value. */ java.lang.String getLargeUtf8Value(); /** * <code>string large_utf8_value = 5 [json_name = "largeUtf8Value"];</code> * @return The bytes for largeUtf8Value. */ com.google.protobuf.ByteString getLargeUtf8ValueBytes(); /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> * @return Whether the timestampValue field is set. */ boolean hasTimestampValue(); /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> * @return The timestampValue. */ ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValue getTimestampValue(); /** * <code>.chalk.arrow.v1.ScalarTimestampValue timestamp_value = 6 [json_name = "timestampValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarTimestampValueOrBuilder getTimestampValueOrBuilder(); /** * <code>int64 date_64_value = 7 [json_name = "date64Value"];</code> * @return Whether the date64Value field is set. */ boolean hasDate64Value(); /** * <code>int64 date_64_value = 7 [json_name = "date64Value"];</code> * @return The date64Value. */ long getDate64Value(); /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> * @return Whether the structValue field is set. */ boolean hasStructValue(); /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> * @return The structValue. */ ai.chalk.protos.chalk.arrow.v1.StructValue getStructValue(); /** * <code>.chalk.arrow.v1.StructValue struct_value = 8 [json_name = "structValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.StructValueOrBuilder getStructValueOrBuilder(); /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> * @return Whether the largeListValue field is set. */ boolean hasLargeListValue(); /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> * @return The largeListValue. */ ai.chalk.protos.chalk.arrow.v1.ScalarListValue getLargeListValue(); /** * <code>.chalk.arrow.v1.ScalarListValue large_list_value = 9 [json_name = "largeListValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getLargeListValueOrBuilder(); /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> * @return Whether the time64Value field is set. */ boolean hasTime64Value(); /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> * @return The time64Value. */ ai.chalk.protos.chalk.arrow.v1.ScalarTime64Value getTime64Value(); /** * <pre> * Leave placeholders for 11-15 in case * we get the most popular types wrong. * </pre> * * <code>.chalk.arrow.v1.ScalarTime64Value time64_value = 10 [json_name = "time64Value"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarTime64ValueOrBuilder getTime64ValueOrBuilder(); /** * <code>int64 duration_second_value = 16 [json_name = "durationSecondValue"];</code> * @return Whether the durationSecondValue field is set. */ boolean hasDurationSecondValue(); /** * <code>int64 duration_second_value = 16 [json_name = "durationSecondValue"];</code> * @return The durationSecondValue. */ long getDurationSecondValue(); /** * <code>int64 duration_millisecond_value = 17 [json_name = "durationMillisecondValue"];</code> * @return Whether the durationMillisecondValue field is set. */ boolean hasDurationMillisecondValue(); /** * <code>int64 duration_millisecond_value = 17 [json_name = "durationMillisecondValue"];</code> * @return The durationMillisecondValue. */ long getDurationMillisecondValue(); /** * <code>int64 duration_microsecond_value = 18 [json_name = "durationMicrosecondValue"];</code> * @return Whether the durationMicrosecondValue field is set. */ boolean hasDurationMicrosecondValue(); /** * <code>int64 duration_microsecond_value = 18 [json_name = "durationMicrosecondValue"];</code> * @return The durationMicrosecondValue. */ long getDurationMicrosecondValue(); /** * <code>int64 duration_nanosecond_value = 19 [json_name = "durationNanosecondValue"];</code> * @return Whether the durationNanosecondValue field is set. */ boolean hasDurationNanosecondValue(); /** * <code>int64 duration_nanosecond_value = 19 [json_name = "durationNanosecondValue"];</code> * @return The durationNanosecondValue. */ long getDurationNanosecondValue(); /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return Whether the utf8Value field is set. */ boolean hasUtf8Value(); /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return The utf8Value. */ java.lang.String getUtf8Value(); /** * <code>string utf8_value = 20 [json_name = "utf8Value"];</code> * @return The bytes for utf8Value. */ com.google.protobuf.ByteString getUtf8ValueBytes(); /** * <code>int32 int8_value = 21 [json_name = "int8Value"];</code> * @return Whether the int8Value field is set. */ boolean hasInt8Value(); /** * <code>int32 int8_value = 21 [json_name = "int8Value"];</code> * @return The int8Value. */ int getInt8Value(); /** * <code>int32 int16_value = 22 [json_name = "int16Value"];</code> * @return Whether the int16Value field is set. */ boolean hasInt16Value(); /** * <code>int32 int16_value = 22 [json_name = "int16Value"];</code> * @return The int16Value. */ int getInt16Value(); /** * <code>int32 int32_value = 23 [json_name = "int32Value"];</code> * @return Whether the int32Value field is set. */ boolean hasInt32Value(); /** * <code>int32 int32_value = 23 [json_name = "int32Value"];</code> * @return The int32Value. */ int getInt32Value(); /** * <code>uint32 uint8_value = 24 [json_name = "uint8Value"];</code> * @return Whether the uint8Value field is set. */ boolean hasUint8Value(); /** * <code>uint32 uint8_value = 24 [json_name = "uint8Value"];</code> * @return The uint8Value. */ int getUint8Value(); /** * <code>uint32 uint16_value = 25 [json_name = "uint16Value"];</code> * @return Whether the uint16Value field is set. */ boolean hasUint16Value(); /** * <code>uint32 uint16_value = 25 [json_name = "uint16Value"];</code> * @return The uint16Value. */ int getUint16Value(); /** * <code>uint32 uint32_value = 26 [json_name = "uint32Value"];</code> * @return Whether the uint32Value field is set. */ boolean hasUint32Value(); /** * <code>uint32 uint32_value = 26 [json_name = "uint32Value"];</code> * @return The uint32Value. */ int getUint32Value(); /** * <code>uint64 uint64_value = 27 [json_name = "uint64Value"];</code> * @return Whether the uint64Value field is set. */ boolean hasUint64Value(); /** * <code>uint64 uint64_value = 27 [json_name = "uint64Value"];</code> * @return The uint64Value. */ long getUint64Value(); /** * <code>float float16_value = 28 [json_name = "float16Value"];</code> * @return Whether the float16Value field is set. */ boolean hasFloat16Value(); /** * <code>float float16_value = 28 [json_name = "float16Value"];</code> * @return The float16Value. */ float getFloat16Value(); /** * <code>float float32_value = 29 [json_name = "float32Value"];</code> * @return Whether the float32Value field is set. */ boolean hasFloat32Value(); /** * <code>float float32_value = 29 [json_name = "float32Value"];</code> * @return The float32Value. */ float getFloat32Value(); /** * <code>int32 date_32_value = 30 [json_name = "date32Value"];</code> * @return Whether the date32Value field is set. */ boolean hasDate32Value(); /** * <code>int32 date_32_value = 30 [json_name = "date32Value"];</code> * @return The date32Value. */ int getDate32Value(); /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> * @return Whether the time32Value field is set. */ boolean hasTime32Value(); /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> * @return The time32Value. */ ai.chalk.protos.chalk.arrow.v1.ScalarTime32Value getTime32Value(); /** * <code>.chalk.arrow.v1.ScalarTime32Value time32_value = 31 [json_name = "time32Value"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarTime32ValueOrBuilder getTime32ValueOrBuilder(); /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> * @return Whether the listValue field is set. */ boolean hasListValue(); /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> * @return The listValue. */ ai.chalk.protos.chalk.arrow.v1.ScalarListValue getListValue(); /** * <code>.chalk.arrow.v1.ScalarListValue list_value = 32 [json_name = "listValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getListValueOrBuilder(); /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> * @return Whether the fixedSizeListValue field is set. */ boolean hasFixedSizeListValue(); /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> * @return The fixedSizeListValue. */ ai.chalk.protos.chalk.arrow.v1.ScalarListValue getFixedSizeListValue(); /** * <code>.chalk.arrow.v1.ScalarListValue fixed_size_list_value = 33 [json_name = "fixedSizeListValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getFixedSizeListValueOrBuilder(); /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> * @return Whether the mapValue field is set. */ boolean hasMapValue(); /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> * @return The mapValue. */ ai.chalk.protos.chalk.arrow.v1.ScalarListValue getMapValue(); /** * <code>.chalk.arrow.v1.ScalarListValue map_value = 34 [json_name = "mapValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarListValueOrBuilder getMapValueOrBuilder(); /** * <code>bytes binary_value = 35 [json_name = "binaryValue"];</code> * @return Whether the binaryValue field is set. */ boolean hasBinaryValue(); /** * <code>bytes binary_value = 35 [json_name = "binaryValue"];</code> * @return The binaryValue. */ com.google.protobuf.ByteString getBinaryValue(); /** * <code>bytes large_binary_value = 36 [json_name = "largeBinaryValue"];</code> * @return Whether the largeBinaryValue field is set. */ boolean hasLargeBinaryValue(); /** * <code>bytes large_binary_value = 36 [json_name = "largeBinaryValue"];</code> * @return The largeBinaryValue. */ com.google.protobuf.ByteString getLargeBinaryValue(); /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> * @return Whether the fixedSizeBinaryValue field is set. */ boolean hasFixedSizeBinaryValue(); /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> * @return The fixedSizeBinaryValue. */ ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinary getFixedSizeBinaryValue(); /** * <code>.chalk.arrow.v1.ScalarFixedSizeBinary fixed_size_binary_value = 37 [json_name = "fixedSizeBinaryValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarFixedSizeBinaryOrBuilder getFixedSizeBinaryValueOrBuilder(); /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> * @return Whether the decimal128Value field is set. */ boolean hasDecimal128Value(); /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> * @return The decimal128Value. */ ai.chalk.protos.chalk.arrow.v1.DecimalValue getDecimal128Value(); /** * <code>.chalk.arrow.v1.DecimalValue decimal128_value = 38 [json_name = "decimal128Value"];</code> */ ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder getDecimal128ValueOrBuilder(); /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> * @return Whether the decimal256Value field is set. */ boolean hasDecimal256Value(); /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> * @return The decimal256Value. */ ai.chalk.protos.chalk.arrow.v1.DecimalValue getDecimal256Value(); /** * <code>.chalk.arrow.v1.DecimalValue decimal256_value = 39 [json_name = "decimal256Value"];</code> */ ai.chalk.protos.chalk.arrow.v1.DecimalValueOrBuilder getDecimal256ValueOrBuilder(); /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> * @return Whether the extensionValue field is set. */ boolean hasExtensionValue(); /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> * @return The extensionValue. */ ai.chalk.protos.chalk.arrow.v1.ExtensionValue getExtensionValue(); /** * <code>.chalk.arrow.v1.ExtensionValue extension_value = 40 [json_name = "extensionValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ExtensionValueOrBuilder getExtensionValueOrBuilder(); ai.chalk.protos.chalk.arrow.v1.ScalarValue.ValueCase getValueCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/Schema.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.Schema} */ public final class Schema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.Schema) SchemaOrBuilder { private static final long serialVersionUID = 0L; // Use Schema.newBuilder() to construct. private Schema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Schema() { columns_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Schema(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Schema_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Schema.class, ai.chalk.protos.chalk.arrow.v1.Schema.Builder.class); } public static final int COLUMNS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> columns_; /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getColumnsList() { return columns_; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getColumnsOrBuilderList() { return columns_; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ @java.lang.Override public int getColumnsCount() { return columns_.size(); } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getColumns(int index) { return columns_.get(index); } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getColumnsOrBuilder( int index) { return columns_.get(index); } public static final int METADATA_FIELD_NUMBER = 2; private static final class MetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, java.lang.String>newDefaultInstance( ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Schema_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMetadata() { return getMetadataMap(); } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() { return internalGetMetadata().getMap(); } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ @java.lang.Override public /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().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 { for (int i = 0; i < columns_.size(); i++) { output.writeMessage(1, columns_.get(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < columns_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, columns_.get(i)); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, metadata__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.Schema)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.Schema other = (ai.chalk.protos.chalk.arrow.v1.Schema) obj; if (!getColumnsList() .equals(other.getColumnsList())) return false; if (!internalGetMetadata().equals( other.internalGetMetadata())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getColumnsCount() > 0) { hash = (37 * hash) + COLUMNS_FIELD_NUMBER; hash = (53 * hash) + getColumnsList().hashCode(); } if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.Schema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Schema parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Schema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Schema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Schema parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Schema parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Schema 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 ai.chalk.protos.chalk.arrow.v1.Schema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Schema 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 ai.chalk.protos.chalk.arrow.v1.Schema parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Schema 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(ai.chalk.protos.chalk.arrow.v1.Schema 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; } /** * Protobuf type {@code chalk.arrow.v1.Schema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.Schema) ai.chalk.protos.chalk.arrow.v1.SchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Schema_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 2: return internalGetMutableMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Schema.class, ai.chalk.protos.chalk.arrow.v1.Schema.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.Schema.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); } else { columns_ = null; columnsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableMetadata().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Schema_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Schema getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.Schema.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Schema build() { ai.chalk.protos.chalk.arrow.v1.Schema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Schema buildPartial() { ai.chalk.protos.chalk.arrow.v1.Schema result = new ai.chalk.protos.chalk.arrow.v1.Schema(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.arrow.v1.Schema result) { if (columnsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { columns_ = java.util.Collections.unmodifiableList(columns_); bitField0_ = (bitField0_ & ~0x00000001); } result.columns_ = columns_; } else { result.columns_ = columnsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.Schema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.Schema) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.Schema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.Schema other) { if (other == ai.chalk.protos.chalk.arrow.v1.Schema.getDefaultInstance()) return this; if (columnsBuilder_ == null) { if (!other.columns_.isEmpty()) { if (columns_.isEmpty()) { columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureColumnsIsMutable(); columns_.addAll(other.columns_); } onChanged(); } } else { if (!other.columns_.isEmpty()) { if (columnsBuilder_.isEmpty()) { columnsBuilder_.dispose(); columnsBuilder_ = null; columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000001); columnsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getColumnsFieldBuilder() : null; } else { columnsBuilder_.addAllMessages(other.columns_); } } } internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ai.chalk.protos.chalk.arrow.v1.Field m = input.readMessage( ai.chalk.protos.chalk.arrow.v1.Field.parser(), extensionRegistry); if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(m); } else { columnsBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> metadata__ = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMetadata().getMutableMap().put( metadata__.getKey(), metadata__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> columns_ = java.util.Collections.emptyList(); private void ensureColumnsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { columns_ = new java.util.ArrayList<ai.chalk.protos.chalk.arrow.v1.Field>(columns_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> columnsBuilder_; /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getColumnsList() { if (columnsBuilder_ == null) { return java.util.Collections.unmodifiableList(columns_); } else { return columnsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public int getColumnsCount() { if (columnsBuilder_ == null) { return columns_.size(); } else { return columnsBuilder_.getCount(); } } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field getColumns(int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public Builder setColumns( int index, ai.chalk.protos.chalk.arrow.v1.Field value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.set(index, value); onChanged(); } else { columnsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public Builder setColumns( int index, ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.set(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public Builder addColumns(ai.chalk.protos.chalk.arrow.v1.Field value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(value); onChanged(); } else { columnsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public Builder addColumns( int index, ai.chalk.protos.chalk.arrow.v1.Field value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(index, value); onChanged(); } else { columnsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public Builder addColumns( ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public Builder addColumns( int index, ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public Builder addAllColumns( java.lang.Iterable<? extends ai.chalk.protos.chalk.arrow.v1.Field> values) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, columns_); onChanged(); } else { columnsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public Builder clearColumns() { if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { columnsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public Builder removeColumns(int index) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.remove(index); onChanged(); } else { columnsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder getColumnsBuilder( int index) { return getColumnsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getColumnsOrBuilder( int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getColumnsOrBuilderList() { if (columnsBuilder_ != null) { return columnsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(columns_); } } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder addColumnsBuilder() { return getColumnsFieldBuilder().addBuilder( ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder addColumnsBuilder( int index) { return getColumnsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field.Builder> getColumnsBuilderList() { return getColumnsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getColumnsFieldBuilder() { if (columnsBuilder_ == null) { columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder>( columns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); columns_ = null; } return columnsBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableMetadata() { if (metadata_ == null) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } bitField0_ |= 0x00000002; onChanged(); return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMetadata() { return getMetadataMap(); } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() { return internalGetMetadata().getMap(); } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ @java.lang.Override public /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableMetadata().getMutableMap() .clear(); return this; } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMetadata().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMutableMetadata() { bitField0_ |= 0x00000002; return internalGetMutableMetadata().getMutableMap(); } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ public Builder putMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ public Builder putAllMetadata( java.util.Map<java.lang.String, java.lang.String> values) { internalGetMutableMetadata().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.Schema) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.Schema) private static final ai.chalk.protos.chalk.arrow.v1.Schema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.Schema(); } public static ai.chalk.protos.chalk.arrow.v1.Schema getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Schema> PARSER = new com.google.protobuf.AbstractParser<Schema>() { @java.lang.Override public Schema parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<Schema> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Schema> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Schema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/SchemaOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface SchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.Schema) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getColumnsList(); /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ ai.chalk.protos.chalk.arrow.v1.Field getColumns(int index); /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ int getColumnsCount(); /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getColumnsOrBuilderList(); /** * <code>repeated .chalk.arrow.v1.Field columns = 1 [json_name = "columns"];</code> */ ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getColumnsOrBuilder( int index); /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ int getMetadataCount(); /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, java.lang.String> getMetadata(); /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ java.util.Map<java.lang.String, java.lang.String> getMetadataMap(); /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * <code>map&lt;string, string&gt; metadata = 2 [json_name = "metadata"];</code> */ java.lang.String getMetadataOrThrow( java.lang.String key); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/Struct.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.Struct} */ public final class Struct extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.Struct) StructOrBuilder { private static final long serialVersionUID = 0L; // Use Struct.newBuilder() to construct. private Struct(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Struct() { subFieldTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Struct(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Struct_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Struct_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Struct.class, ai.chalk.protos.chalk.arrow.v1.Struct.Builder.class); } public static final int SUB_FIELD_TYPES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> subFieldTypes_; /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getSubFieldTypesList() { return subFieldTypes_; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getSubFieldTypesOrBuilderList() { return subFieldTypes_; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ @java.lang.Override public int getSubFieldTypesCount() { return subFieldTypes_.size(); } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getSubFieldTypes(int index) { return subFieldTypes_.get(index); } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getSubFieldTypesOrBuilder( int index) { return subFieldTypes_.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 { for (int i = 0; i < subFieldTypes_.size(); i++) { output.writeMessage(1, subFieldTypes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < subFieldTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, subFieldTypes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.Struct)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.Struct other = (ai.chalk.protos.chalk.arrow.v1.Struct) obj; if (!getSubFieldTypesList() .equals(other.getSubFieldTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSubFieldTypesCount() > 0) { hash = (37 * hash) + SUB_FIELD_TYPES_FIELD_NUMBER; hash = (53 * hash) + getSubFieldTypesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.Struct parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Struct parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Struct parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Struct parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Struct parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Struct parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Struct parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Struct 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 ai.chalk.protos.chalk.arrow.v1.Struct parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Struct 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 ai.chalk.protos.chalk.arrow.v1.Struct parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Struct 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(ai.chalk.protos.chalk.arrow.v1.Struct 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; } /** * Protobuf type {@code chalk.arrow.v1.Struct} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.Struct) ai.chalk.protos.chalk.arrow.v1.StructOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Struct_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Struct_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Struct.class, ai.chalk.protos.chalk.arrow.v1.Struct.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.Struct.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (subFieldTypesBuilder_ == null) { subFieldTypes_ = java.util.Collections.emptyList(); } else { subFieldTypes_ = null; subFieldTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Struct_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Struct getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.Struct.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Struct build() { ai.chalk.protos.chalk.arrow.v1.Struct result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Struct buildPartial() { ai.chalk.protos.chalk.arrow.v1.Struct result = new ai.chalk.protos.chalk.arrow.v1.Struct(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.arrow.v1.Struct result) { if (subFieldTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { subFieldTypes_ = java.util.Collections.unmodifiableList(subFieldTypes_); bitField0_ = (bitField0_ & ~0x00000001); } result.subFieldTypes_ = subFieldTypes_; } else { result.subFieldTypes_ = subFieldTypesBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.Struct result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.Struct) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.Struct)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.Struct other) { if (other == ai.chalk.protos.chalk.arrow.v1.Struct.getDefaultInstance()) return this; if (subFieldTypesBuilder_ == null) { if (!other.subFieldTypes_.isEmpty()) { if (subFieldTypes_.isEmpty()) { subFieldTypes_ = other.subFieldTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSubFieldTypesIsMutable(); subFieldTypes_.addAll(other.subFieldTypes_); } onChanged(); } } else { if (!other.subFieldTypes_.isEmpty()) { if (subFieldTypesBuilder_.isEmpty()) { subFieldTypesBuilder_.dispose(); subFieldTypesBuilder_ = null; subFieldTypes_ = other.subFieldTypes_; bitField0_ = (bitField0_ & ~0x00000001); subFieldTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSubFieldTypesFieldBuilder() : null; } else { subFieldTypesBuilder_.addAllMessages(other.subFieldTypes_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ai.chalk.protos.chalk.arrow.v1.Field m = input.readMessage( ai.chalk.protos.chalk.arrow.v1.Field.parser(), extensionRegistry); if (subFieldTypesBuilder_ == null) { ensureSubFieldTypesIsMutable(); subFieldTypes_.add(m); } else { subFieldTypesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> subFieldTypes_ = java.util.Collections.emptyList(); private void ensureSubFieldTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { subFieldTypes_ = new java.util.ArrayList<ai.chalk.protos.chalk.arrow.v1.Field>(subFieldTypes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> subFieldTypesBuilder_; /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getSubFieldTypesList() { if (subFieldTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(subFieldTypes_); } else { return subFieldTypesBuilder_.getMessageList(); } } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public int getSubFieldTypesCount() { if (subFieldTypesBuilder_ == null) { return subFieldTypes_.size(); } else { return subFieldTypesBuilder_.getCount(); } } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field getSubFieldTypes(int index) { if (subFieldTypesBuilder_ == null) { return subFieldTypes_.get(index); } else { return subFieldTypesBuilder_.getMessage(index); } } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public Builder setSubFieldTypes( int index, ai.chalk.protos.chalk.arrow.v1.Field value) { if (subFieldTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubFieldTypesIsMutable(); subFieldTypes_.set(index, value); onChanged(); } else { subFieldTypesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public Builder setSubFieldTypes( int index, ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (subFieldTypesBuilder_ == null) { ensureSubFieldTypesIsMutable(); subFieldTypes_.set(index, builderForValue.build()); onChanged(); } else { subFieldTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public Builder addSubFieldTypes(ai.chalk.protos.chalk.arrow.v1.Field value) { if (subFieldTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubFieldTypesIsMutable(); subFieldTypes_.add(value); onChanged(); } else { subFieldTypesBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public Builder addSubFieldTypes( int index, ai.chalk.protos.chalk.arrow.v1.Field value) { if (subFieldTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubFieldTypesIsMutable(); subFieldTypes_.add(index, value); onChanged(); } else { subFieldTypesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public Builder addSubFieldTypes( ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (subFieldTypesBuilder_ == null) { ensureSubFieldTypesIsMutable(); subFieldTypes_.add(builderForValue.build()); onChanged(); } else { subFieldTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public Builder addSubFieldTypes( int index, ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (subFieldTypesBuilder_ == null) { ensureSubFieldTypesIsMutable(); subFieldTypes_.add(index, builderForValue.build()); onChanged(); } else { subFieldTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public Builder addAllSubFieldTypes( java.lang.Iterable<? extends ai.chalk.protos.chalk.arrow.v1.Field> values) { if (subFieldTypesBuilder_ == null) { ensureSubFieldTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, subFieldTypes_); onChanged(); } else { subFieldTypesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public Builder clearSubFieldTypes() { if (subFieldTypesBuilder_ == null) { subFieldTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { subFieldTypesBuilder_.clear(); } return this; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public Builder removeSubFieldTypes(int index) { if (subFieldTypesBuilder_ == null) { ensureSubFieldTypesIsMutable(); subFieldTypes_.remove(index); onChanged(); } else { subFieldTypesBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder getSubFieldTypesBuilder( int index) { return getSubFieldTypesFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getSubFieldTypesOrBuilder( int index) { if (subFieldTypesBuilder_ == null) { return subFieldTypes_.get(index); } else { return subFieldTypesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getSubFieldTypesOrBuilderList() { if (subFieldTypesBuilder_ != null) { return subFieldTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subFieldTypes_); } } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder addSubFieldTypesBuilder() { return getSubFieldTypesFieldBuilder().addBuilder( ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder addSubFieldTypesBuilder( int index) { return getSubFieldTypesFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field.Builder> getSubFieldTypesBuilderList() { return getSubFieldTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getSubFieldTypesFieldBuilder() { if (subFieldTypesBuilder_ == null) { subFieldTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder>( subFieldTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); subFieldTypes_ = null; } return subFieldTypesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.Struct) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.Struct) private static final ai.chalk.protos.chalk.arrow.v1.Struct DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.Struct(); } public static ai.chalk.protos.chalk.arrow.v1.Struct getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Struct> PARSER = new com.google.protobuf.AbstractParser<Struct>() { @java.lang.Override public Struct parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<Struct> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Struct> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Struct getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/StructOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface StructOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.Struct) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getSubFieldTypesList(); /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ ai.chalk.protos.chalk.arrow.v1.Field getSubFieldTypes(int index); /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ int getSubFieldTypesCount(); /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getSubFieldTypesOrBuilderList(); /** * <code>repeated .chalk.arrow.v1.Field sub_field_types = 1 [json_name = "subFieldTypes"];</code> */ ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getSubFieldTypesOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/StructValue.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.StructValue} */ public final class StructValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.StructValue) StructValueOrBuilder { private static final long serialVersionUID = 0L; // Use StructValue.newBuilder() to construct. private StructValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private StructValue() { fieldValues_ = java.util.Collections.emptyList(); fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StructValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_StructValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_StructValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.StructValue.class, ai.chalk.protos.chalk.arrow.v1.StructValue.Builder.class); } public static final int FIELD_VALUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.arrow.v1.ScalarValue> fieldValues_; /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.arrow.v1.ScalarValue> getFieldValuesList() { return fieldValues_; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> getFieldValuesOrBuilderList() { return fieldValues_; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ @java.lang.Override public int getFieldValuesCount() { return fieldValues_.size(); } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getFieldValues(int index) { return fieldValues_.get(index); } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getFieldValuesOrBuilder( int index) { return fieldValues_.get(index); } public static final int FIELDS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> fields_; /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getFieldsList() { return fields_; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getFieldsOrBuilderList() { return fields_; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Field getFields(int index) { return fields_.get(index); } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getFieldsOrBuilder( int index) { return fields_.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 { for (int i = 0; i < fieldValues_.size(); i++) { output.writeMessage(2, fieldValues_.get(i)); } for (int i = 0; i < fields_.size(); i++) { output.writeMessage(3, fields_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < fieldValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fieldValues_.get(i)); } for (int i = 0; i < fields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, fields_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.StructValue)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.StructValue other = (ai.chalk.protos.chalk.arrow.v1.StructValue) obj; if (!getFieldValuesList() .equals(other.getFieldValuesList())) return false; if (!getFieldsList() .equals(other.getFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFieldValuesCount() > 0) { hash = (37 * hash) + FIELD_VALUES_FIELD_NUMBER; hash = (53 * hash) + getFieldValuesList().hashCode(); } if (getFieldsCount() > 0) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.StructValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.StructValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.StructValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.StructValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.StructValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.StructValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.StructValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.StructValue 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 ai.chalk.protos.chalk.arrow.v1.StructValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.StructValue 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 ai.chalk.protos.chalk.arrow.v1.StructValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.StructValue 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(ai.chalk.protos.chalk.arrow.v1.StructValue 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; } /** * Protobuf type {@code chalk.arrow.v1.StructValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.StructValue) ai.chalk.protos.chalk.arrow.v1.StructValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_StructValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_StructValue_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.StructValue.class, ai.chalk.protos.chalk.arrow.v1.StructValue.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.StructValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (fieldValuesBuilder_ == null) { fieldValues_ = java.util.Collections.emptyList(); } else { fieldValues_ = null; fieldValuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); } else { fields_ = null; fieldsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_StructValue_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructValue getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.StructValue.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructValue build() { ai.chalk.protos.chalk.arrow.v1.StructValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructValue buildPartial() { ai.chalk.protos.chalk.arrow.v1.StructValue result = new ai.chalk.protos.chalk.arrow.v1.StructValue(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.arrow.v1.StructValue result) { if (fieldValuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fieldValues_ = java.util.Collections.unmodifiableList(fieldValues_); bitField0_ = (bitField0_ & ~0x00000001); } result.fieldValues_ = fieldValues_; } else { result.fieldValues_ = fieldValuesBuilder_.build(); } if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); bitField0_ = (bitField0_ & ~0x00000002); } result.fields_ = fields_; } else { result.fields_ = fieldsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.StructValue result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.StructValue) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.StructValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.StructValue other) { if (other == ai.chalk.protos.chalk.arrow.v1.StructValue.getDefaultInstance()) return this; if (fieldValuesBuilder_ == null) { if (!other.fieldValues_.isEmpty()) { if (fieldValues_.isEmpty()) { fieldValues_ = other.fieldValues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldValuesIsMutable(); fieldValues_.addAll(other.fieldValues_); } onChanged(); } } else { if (!other.fieldValues_.isEmpty()) { if (fieldValuesBuilder_.isEmpty()) { fieldValuesBuilder_.dispose(); fieldValuesBuilder_ = null; fieldValues_ = other.fieldValues_; bitField0_ = (bitField0_ & ~0x00000001); fieldValuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldValuesFieldBuilder() : null; } else { fieldValuesBuilder_.addAllMessages(other.fieldValues_); } } } if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFieldsIsMutable(); fields_.addAll(other.fields_); } onChanged(); } } else { if (!other.fields_.isEmpty()) { if (fieldsBuilder_.isEmpty()) { fieldsBuilder_.dispose(); fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000002); fieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { ai.chalk.protos.chalk.arrow.v1.ScalarValue m = input.readMessage( ai.chalk.protos.chalk.arrow.v1.ScalarValue.parser(), extensionRegistry); if (fieldValuesBuilder_ == null) { ensureFieldValuesIsMutable(); fieldValues_.add(m); } else { fieldValuesBuilder_.addMessage(m); } break; } // case 18 case 26: { ai.chalk.protos.chalk.arrow.v1.Field m = input.readMessage( ai.chalk.protos.chalk.arrow.v1.Field.parser(), extensionRegistry); if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(m); } else { fieldsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List<ai.chalk.protos.chalk.arrow.v1.ScalarValue> fieldValues_ = java.util.Collections.emptyList(); private void ensureFieldValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fieldValues_ = new java.util.ArrayList<ai.chalk.protos.chalk.arrow.v1.ScalarValue>(fieldValues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> fieldValuesBuilder_; /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.ScalarValue> getFieldValuesList() { if (fieldValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(fieldValues_); } else { return fieldValuesBuilder_.getMessageList(); } } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public int getFieldValuesCount() { if (fieldValuesBuilder_ == null) { return fieldValues_.size(); } else { return fieldValuesBuilder_.getCount(); } } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue getFieldValues(int index) { if (fieldValuesBuilder_ == null) { return fieldValues_.get(index); } else { return fieldValuesBuilder_.getMessage(index); } } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public Builder setFieldValues( int index, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (fieldValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldValuesIsMutable(); fieldValues_.set(index, value); onChanged(); } else { fieldValuesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public Builder setFieldValues( int index, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder builderForValue) { if (fieldValuesBuilder_ == null) { ensureFieldValuesIsMutable(); fieldValues_.set(index, builderForValue.build()); onChanged(); } else { fieldValuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public Builder addFieldValues(ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (fieldValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldValuesIsMutable(); fieldValues_.add(value); onChanged(); } else { fieldValuesBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public Builder addFieldValues( int index, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (fieldValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldValuesIsMutable(); fieldValues_.add(index, value); onChanged(); } else { fieldValuesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public Builder addFieldValues( ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder builderForValue) { if (fieldValuesBuilder_ == null) { ensureFieldValuesIsMutable(); fieldValues_.add(builderForValue.build()); onChanged(); } else { fieldValuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public Builder addFieldValues( int index, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder builderForValue) { if (fieldValuesBuilder_ == null) { ensureFieldValuesIsMutable(); fieldValues_.add(index, builderForValue.build()); onChanged(); } else { fieldValuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public Builder addAllFieldValues( java.lang.Iterable<? extends ai.chalk.protos.chalk.arrow.v1.ScalarValue> values) { if (fieldValuesBuilder_ == null) { ensureFieldValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fieldValues_); onChanged(); } else { fieldValuesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public Builder clearFieldValues() { if (fieldValuesBuilder_ == null) { fieldValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldValuesBuilder_.clear(); } return this; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public Builder removeFieldValues(int index) { if (fieldValuesBuilder_ == null) { ensureFieldValuesIsMutable(); fieldValues_.remove(index); onChanged(); } else { fieldValuesBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder getFieldValuesBuilder( int index) { return getFieldValuesFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getFieldValuesOrBuilder( int index) { if (fieldValuesBuilder_ == null) { return fieldValues_.get(index); } else { return fieldValuesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> getFieldValuesOrBuilderList() { if (fieldValuesBuilder_ != null) { return fieldValuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fieldValues_); } } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder addFieldValuesBuilder() { return getFieldValuesFieldBuilder().addBuilder( ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder addFieldValuesBuilder( int index) { return getFieldValuesFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> getFieldValuesBuilderList() { return getFieldValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> getFieldValuesFieldBuilder() { if (fieldValuesBuilder_ == null) { fieldValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder>( fieldValues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fieldValues_ = null; } return fieldValuesBuilder_; } private java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> fields_ = java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { fields_ = new java.util.ArrayList<ai.chalk.protos.chalk.arrow.v1.Field>(fields_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> fieldsBuilder_; /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { return fieldsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public int getFieldsCount() { if (fieldsBuilder_ == null) { return fields_.size(); } else { return fieldsBuilder_.getCount(); } } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field getFields(int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public Builder setFields( int index, ai.chalk.protos.chalk.arrow.v1.Field value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); } else { fieldsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public Builder setFields( int index, ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public Builder addFields(ai.chalk.protos.chalk.arrow.v1.Field value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); onChanged(); } else { fieldsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public Builder addFields( int index, ai.chalk.protos.chalk.arrow.v1.Field value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(index, value); onChanged(); } else { fieldsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public Builder addFields( ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public Builder addFields( int index, ai.chalk.protos.chalk.arrow.v1.Field.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); onChanged(); } else { fieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public Builder addAllFields( java.lang.Iterable<? extends ai.chalk.protos.chalk.arrow.v1.Field> values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public Builder clearFields() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { fieldsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.remove(index); onChanged(); } else { fieldsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fields_); } } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder addFieldsBuilder() { return getFieldsFieldBuilder().addBuilder( ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public ai.chalk.protos.chalk.arrow.v1.Field.Builder addFieldsBuilder( int index) { return getFieldsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.arrow.v1.Field.getDefaultInstance()); } /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ public java.util.List<ai.chalk.protos.chalk.arrow.v1.Field.Builder> getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.Field, ai.chalk.protos.chalk.arrow.v1.Field.Builder, ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder>( fields_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.StructValue) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.StructValue) private static final ai.chalk.protos.chalk.arrow.v1.StructValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.StructValue(); } public static ai.chalk.protos.chalk.arrow.v1.StructValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<StructValue> PARSER = new com.google.protobuf.AbstractParser<StructValue>() { @java.lang.Override public StructValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<StructValue> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<StructValue> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.StructValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/StructValueOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface StructValueOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.StructValue) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ java.util.List<ai.chalk.protos.chalk.arrow.v1.ScalarValue> getFieldValuesList(); /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getFieldValues(int index); /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ int getFieldValuesCount(); /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> getFieldValuesOrBuilderList(); /** * <code>repeated .chalk.arrow.v1.ScalarValue field_values = 2 [json_name = "fieldValues"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getFieldValuesOrBuilder( int index); /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ java.util.List<ai.chalk.protos.chalk.arrow.v1.Field> getFieldsList(); /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ ai.chalk.protos.chalk.arrow.v1.Field getFields(int index); /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ int getFieldsCount(); /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder> getFieldsOrBuilderList(); /** * <code>repeated .chalk.arrow.v1.Field fields = 3 [json_name = "fields"];</code> */ ai.chalk.protos.chalk.arrow.v1.FieldOrBuilder getFieldsOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/TimeUnit.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf enum {@code chalk.arrow.v1.TimeUnit} */ public enum TimeUnit implements com.google.protobuf.ProtocolMessageEnum { /** * <code>TIME_UNIT_UNSPECIFIED = 0;</code> */ TIME_UNIT_UNSPECIFIED(0), /** * <code>TIME_UNIT_SECOND = 1;</code> */ TIME_UNIT_SECOND(1), /** * <code>TIME_UNIT_MILLISECOND = 2;</code> */ TIME_UNIT_MILLISECOND(2), /** * <code>TIME_UNIT_MICROSECOND = 3;</code> */ TIME_UNIT_MICROSECOND(3), /** * <code>TIME_UNIT_NANOSECOND = 4;</code> */ TIME_UNIT_NANOSECOND(4), UNRECOGNIZED(-1), ; /** * <code>TIME_UNIT_UNSPECIFIED = 0;</code> */ public static final int TIME_UNIT_UNSPECIFIED_VALUE = 0; /** * <code>TIME_UNIT_SECOND = 1;</code> */ public static final int TIME_UNIT_SECOND_VALUE = 1; /** * <code>TIME_UNIT_MILLISECOND = 2;</code> */ public static final int TIME_UNIT_MILLISECOND_VALUE = 2; /** * <code>TIME_UNIT_MICROSECOND = 3;</code> */ public static final int TIME_UNIT_MICROSECOND_VALUE = 3; /** * <code>TIME_UNIT_NANOSECOND = 4;</code> */ public static final int TIME_UNIT_NANOSECOND_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; } /** * @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 TimeUnit 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 TimeUnit forNumber(int value) { switch (value) { case 0: return TIME_UNIT_UNSPECIFIED; case 1: return TIME_UNIT_SECOND; case 2: return TIME_UNIT_MILLISECOND; case 3: return TIME_UNIT_MICROSECOND; case 4: return TIME_UNIT_NANOSECOND; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<TimeUnit> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TimeUnit> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<TimeUnit>() { public TimeUnit findValueByNumber(int number) { return TimeUnit.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 ai.chalk.protos.chalk.arrow.v1.ArrowProto.getDescriptor().getEnumTypes().get(0); } private static final TimeUnit[] VALUES = values(); public static TimeUnit 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 TimeUnit(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.arrow.v1.TimeUnit) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/Timestamp.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; /** * Protobuf type {@code chalk.arrow.v1.Timestamp} */ public final class Timestamp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.arrow.v1.Timestamp) TimestampOrBuilder { private static final long serialVersionUID = 0L; // Use Timestamp.newBuilder() to construct. private Timestamp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Timestamp() { timeUnit_ = 0; timezone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Timestamp(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Timestamp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Timestamp_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Timestamp.class, ai.chalk.protos.chalk.arrow.v1.Timestamp.Builder.class); } public static final int TIME_UNIT_FIELD_NUMBER = 1; private int timeUnit_ = 0; /** * <code>.chalk.arrow.v1.TimeUnit time_unit = 1 [json_name = "timeUnit"];</code> * @return The enum numeric value on the wire for timeUnit. */ @java.lang.Override public int getTimeUnitValue() { return timeUnit_; } /** * <code>.chalk.arrow.v1.TimeUnit time_unit = 1 [json_name = "timeUnit"];</code> * @return The timeUnit. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.TimeUnit getTimeUnit() { ai.chalk.protos.chalk.arrow.v1.TimeUnit result = ai.chalk.protos.chalk.arrow.v1.TimeUnit.forNumber(timeUnit_); return result == null ? ai.chalk.protos.chalk.arrow.v1.TimeUnit.UNRECOGNIZED : result; } public static final int TIMEZONE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object timezone_ = ""; /** * <code>string timezone = 2 [json_name = "timezone"];</code> * @return The timezone. */ @java.lang.Override public java.lang.String getTimezone() { java.lang.Object ref = timezone_; 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(); timezone_ = s; return s; } } /** * <code>string timezone = 2 [json_name = "timezone"];</code> * @return The bytes for timezone. */ @java.lang.Override public com.google.protobuf.ByteString getTimezoneBytes() { java.lang.Object ref = timezone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timezone_ = 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 (timeUnit_ != ai.chalk.protos.chalk.arrow.v1.TimeUnit.TIME_UNIT_UNSPECIFIED.getNumber()) { output.writeEnum(1, timeUnit_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, timezone_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timeUnit_ != ai.chalk.protos.chalk.arrow.v1.TimeUnit.TIME_UNIT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, timeUnit_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timezone_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.arrow.v1.Timestamp)) { return super.equals(obj); } ai.chalk.protos.chalk.arrow.v1.Timestamp other = (ai.chalk.protos.chalk.arrow.v1.Timestamp) obj; if (timeUnit_ != other.timeUnit_) return false; if (!getTimezone() .equals(other.getTimezone())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TIME_UNIT_FIELD_NUMBER; hash = (53 * hash) + timeUnit_; hash = (37 * hash) + TIMEZONE_FIELD_NUMBER; hash = (53 * hash) + getTimezone().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.arrow.v1.Timestamp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp 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 ai.chalk.protos.chalk.arrow.v1.Timestamp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp 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 ai.chalk.protos.chalk.arrow.v1.Timestamp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp 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(ai.chalk.protos.chalk.arrow.v1.Timestamp 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; } /** * Protobuf type {@code chalk.arrow.v1.Timestamp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.arrow.v1.Timestamp) ai.chalk.protos.chalk.arrow.v1.TimestampOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Timestamp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Timestamp_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.arrow.v1.Timestamp.class, ai.chalk.protos.chalk.arrow.v1.Timestamp.Builder.class); } // Construct using ai.chalk.protos.chalk.arrow.v1.Timestamp.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timeUnit_ = 0; timezone_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.arrow.v1.ArrowProto.internal_static_chalk_arrow_v1_Timestamp_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Timestamp getDefaultInstanceForType() { return ai.chalk.protos.chalk.arrow.v1.Timestamp.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Timestamp build() { ai.chalk.protos.chalk.arrow.v1.Timestamp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Timestamp buildPartial() { ai.chalk.protos.chalk.arrow.v1.Timestamp result = new ai.chalk.protos.chalk.arrow.v1.Timestamp(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.arrow.v1.Timestamp result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.timeUnit_ = timeUnit_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.timezone_ = timezone_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.arrow.v1.Timestamp) { return mergeFrom((ai.chalk.protos.chalk.arrow.v1.Timestamp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.arrow.v1.Timestamp other) { if (other == ai.chalk.protos.chalk.arrow.v1.Timestamp.getDefaultInstance()) return this; if (other.timeUnit_ != 0) { setTimeUnitValue(other.getTimeUnitValue()); } if (!other.getTimezone().isEmpty()) { timezone_ = other.timezone_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { timeUnit_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { timezone_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int timeUnit_ = 0; /** * <code>.chalk.arrow.v1.TimeUnit time_unit = 1 [json_name = "timeUnit"];</code> * @return The enum numeric value on the wire for timeUnit. */ @java.lang.Override public int getTimeUnitValue() { return timeUnit_; } /** * <code>.chalk.arrow.v1.TimeUnit time_unit = 1 [json_name = "timeUnit"];</code> * @param value The enum numeric value on the wire for timeUnit to set. * @return This builder for chaining. */ public Builder setTimeUnitValue(int value) { timeUnit_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.TimeUnit time_unit = 1 [json_name = "timeUnit"];</code> * @return The timeUnit. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.TimeUnit getTimeUnit() { ai.chalk.protos.chalk.arrow.v1.TimeUnit result = ai.chalk.protos.chalk.arrow.v1.TimeUnit.forNumber(timeUnit_); return result == null ? ai.chalk.protos.chalk.arrow.v1.TimeUnit.UNRECOGNIZED : result; } /** * <code>.chalk.arrow.v1.TimeUnit time_unit = 1 [json_name = "timeUnit"];</code> * @param value The timeUnit to set. * @return This builder for chaining. */ public Builder setTimeUnit(ai.chalk.protos.chalk.arrow.v1.TimeUnit value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; timeUnit_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.arrow.v1.TimeUnit time_unit = 1 [json_name = "timeUnit"];</code> * @return This builder for chaining. */ public Builder clearTimeUnit() { bitField0_ = (bitField0_ & ~0x00000001); timeUnit_ = 0; onChanged(); return this; } private java.lang.Object timezone_ = ""; /** * <code>string timezone = 2 [json_name = "timezone"];</code> * @return The timezone. */ public java.lang.String getTimezone() { java.lang.Object ref = timezone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timezone_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string timezone = 2 [json_name = "timezone"];</code> * @return The bytes for timezone. */ public com.google.protobuf.ByteString getTimezoneBytes() { java.lang.Object ref = timezone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timezone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string timezone = 2 [json_name = "timezone"];</code> * @param value The timezone to set. * @return This builder for chaining. */ public Builder setTimezone( java.lang.String value) { if (value == null) { throw new NullPointerException(); } timezone_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string timezone = 2 [json_name = "timezone"];</code> * @return This builder for chaining. */ public Builder clearTimezone() { timezone_ = getDefaultInstance().getTimezone(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string timezone = 2 [json_name = "timezone"];</code> * @param value The bytes for timezone to set. * @return This builder for chaining. */ public Builder setTimezoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timezone_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.arrow.v1.Timestamp) } // @@protoc_insertion_point(class_scope:chalk.arrow.v1.Timestamp) private static final ai.chalk.protos.chalk.arrow.v1.Timestamp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.arrow.v1.Timestamp(); } public static ai.chalk.protos.chalk.arrow.v1.Timestamp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Timestamp> PARSER = new com.google.protobuf.AbstractParser<Timestamp>() { @java.lang.Override public Timestamp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<Timestamp> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Timestamp> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.Timestamp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/arrow/v1/TimestampOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/arrow/v1/arrow.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.arrow.v1; public interface TimestampOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.arrow.v1.Timestamp) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.arrow.v1.TimeUnit time_unit = 1 [json_name = "timeUnit"];</code> * @return The enum numeric value on the wire for timeUnit. */ int getTimeUnitValue(); /** * <code>.chalk.arrow.v1.TimeUnit time_unit = 1 [json_name = "timeUnit"];</code> * @return The timeUnit. */ ai.chalk.protos.chalk.arrow.v1.TimeUnit getTimeUnit(); /** * <code>string timezone = 2 [json_name = "timezone"];</code> * @return The timezone. */ java.lang.String getTimezone(); /** * <code>string timezone = 2 [json_name = "timezone"];</code> * @return The bytes for timezone. */ com.google.protobuf.ByteString getTimezoneBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/Agent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.Agent} */ public final class Agent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.Agent) AgentOrBuilder { private static final long serialVersionUID = 0L; // Use Agent.newBuilder() to construct. private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Agent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Agent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_Agent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_Agent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.Agent.class, ai.chalk.protos.chalk.auth.v1.Agent.Builder.class); } private int agentCase_ = 0; @SuppressWarnings("serial") private java.lang.Object agent_; public enum AgentCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { USER_AGENT(1), SERVICE_TOKEN_AGENT(2), ENGINE_AGENT(3), TENANT_AGENT(4), METADATA_SERVICE_AGENT(5), AGENT_NOT_SET(0); private final int value; private AgentCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AgentCase valueOf(int value) { return forNumber(value); } public static AgentCase forNumber(int value) { switch (value) { case 1: return USER_AGENT; case 2: return SERVICE_TOKEN_AGENT; case 3: return ENGINE_AGENT; case 4: return TENANT_AGENT; case 5: return METADATA_SERVICE_AGENT; case 0: return AGENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AgentCase getAgentCase() { return AgentCase.forNumber( agentCase_); } public static final int USER_AGENT_FIELD_NUMBER = 1; /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return Whether the userAgent field is set. */ @java.lang.Override public boolean hasUserAgent() { return agentCase_ == 1; } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return The userAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.UserAgent getUserAgent() { if (agentCase_ == 1) { return (ai.chalk.protos.chalk.auth.v1.UserAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.UserAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.UserAgentOrBuilder getUserAgentOrBuilder() { if (agentCase_ == 1) { return (ai.chalk.protos.chalk.auth.v1.UserAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.UserAgent.getDefaultInstance(); } public static final int SERVICE_TOKEN_AGENT_FIELD_NUMBER = 2; /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return Whether the serviceTokenAgent field is set. */ @java.lang.Override public boolean hasServiceTokenAgent() { return agentCase_ == 2; } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return The serviceTokenAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent getServiceTokenAgent() { if (agentCase_ == 2) { return (ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder getServiceTokenAgentOrBuilder() { if (agentCase_ == 2) { return (ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance(); } public static final int ENGINE_AGENT_FIELD_NUMBER = 3; /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return Whether the engineAgent field is set. */ @java.lang.Override public boolean hasEngineAgent() { return agentCase_ == 3; } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return The engineAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EngineAgent getEngineAgent() { if (agentCase_ == 3) { return (ai.chalk.protos.chalk.auth.v1.EngineAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.EngineAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EngineAgentOrBuilder getEngineAgentOrBuilder() { if (agentCase_ == 3) { return (ai.chalk.protos.chalk.auth.v1.EngineAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.EngineAgent.getDefaultInstance(); } public static final int TENANT_AGENT_FIELD_NUMBER = 4; /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return Whether the tenantAgent field is set. */ @java.lang.Override public boolean hasTenantAgent() { return agentCase_ == 4; } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return The tenantAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.TenantAgent getTenantAgent() { if (agentCase_ == 4) { return (ai.chalk.protos.chalk.auth.v1.TenantAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.TenantAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.TenantAgentOrBuilder getTenantAgentOrBuilder() { if (agentCase_ == 4) { return (ai.chalk.protos.chalk.auth.v1.TenantAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.TenantAgent.getDefaultInstance(); } public static final int METADATA_SERVICE_AGENT_FIELD_NUMBER = 5; /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return Whether the metadataServiceAgent field is set. */ @java.lang.Override public boolean hasMetadataServiceAgent() { return agentCase_ == 5; } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return The metadataServiceAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent getMetadataServiceAgent() { if (agentCase_ == 5) { return (ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.MetadataServiceAgentOrBuilder getMetadataServiceAgentOrBuilder() { if (agentCase_ == 5) { return (ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.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 (agentCase_ == 1) { output.writeMessage(1, (ai.chalk.protos.chalk.auth.v1.UserAgent) agent_); } if (agentCase_ == 2) { output.writeMessage(2, (ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) agent_); } if (agentCase_ == 3) { output.writeMessage(3, (ai.chalk.protos.chalk.auth.v1.EngineAgent) agent_); } if (agentCase_ == 4) { output.writeMessage(4, (ai.chalk.protos.chalk.auth.v1.TenantAgent) agent_); } if (agentCase_ == 5) { output.writeMessage(5, (ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) agent_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (agentCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.chalk.protos.chalk.auth.v1.UserAgent) agent_); } if (agentCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) agent_); } if (agentCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.chalk.protos.chalk.auth.v1.EngineAgent) agent_); } if (agentCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (ai.chalk.protos.chalk.auth.v1.TenantAgent) agent_); } if (agentCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) agent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.Agent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.Agent other = (ai.chalk.protos.chalk.auth.v1.Agent) obj; if (!getAgentCase().equals(other.getAgentCase())) return false; switch (agentCase_) { case 1: if (!getUserAgent() .equals(other.getUserAgent())) return false; break; case 2: if (!getServiceTokenAgent() .equals(other.getServiceTokenAgent())) return false; break; case 3: if (!getEngineAgent() .equals(other.getEngineAgent())) return false; break; case 4: if (!getTenantAgent() .equals(other.getTenantAgent())) return false; break; case 5: if (!getMetadataServiceAgent() .equals(other.getMetadataServiceAgent())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (agentCase_) { case 1: hash = (37 * hash) + USER_AGENT_FIELD_NUMBER; hash = (53 * hash) + getUserAgent().hashCode(); break; case 2: hash = (37 * hash) + SERVICE_TOKEN_AGENT_FIELD_NUMBER; hash = (53 * hash) + getServiceTokenAgent().hashCode(); break; case 3: hash = (37 * hash) + ENGINE_AGENT_FIELD_NUMBER; hash = (53 * hash) + getEngineAgent().hashCode(); break; case 4: hash = (37 * hash) + TENANT_AGENT_FIELD_NUMBER; hash = (53 * hash) + getTenantAgent().hashCode(); break; case 5: hash = (37 * hash) + METADATA_SERVICE_AGENT_FIELD_NUMBER; hash = (53 * hash) + getMetadataServiceAgent().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.Agent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.Agent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.Agent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.Agent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.Agent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.Agent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.Agent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.Agent 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 ai.chalk.protos.chalk.auth.v1.Agent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.Agent 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 ai.chalk.protos.chalk.auth.v1.Agent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.Agent 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(ai.chalk.protos.chalk.auth.v1.Agent 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; } /** * Protobuf type {@code chalk.auth.v1.Agent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.Agent) ai.chalk.protos.chalk.auth.v1.AgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_Agent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_Agent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.Agent.class, ai.chalk.protos.chalk.auth.v1.Agent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.Agent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (userAgentBuilder_ != null) { userAgentBuilder_.clear(); } if (serviceTokenAgentBuilder_ != null) { serviceTokenAgentBuilder_.clear(); } if (engineAgentBuilder_ != null) { engineAgentBuilder_.clear(); } if (tenantAgentBuilder_ != null) { tenantAgentBuilder_.clear(); } if (metadataServiceAgentBuilder_ != null) { metadataServiceAgentBuilder_.clear(); } agentCase_ = 0; agent_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_Agent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.Agent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.Agent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.Agent build() { ai.chalk.protos.chalk.auth.v1.Agent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.Agent buildPartial() { ai.chalk.protos.chalk.auth.v1.Agent result = new ai.chalk.protos.chalk.auth.v1.Agent(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.Agent result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.auth.v1.Agent result) { result.agentCase_ = agentCase_; result.agent_ = this.agent_; if (agentCase_ == 1 && userAgentBuilder_ != null) { result.agent_ = userAgentBuilder_.build(); } if (agentCase_ == 2 && serviceTokenAgentBuilder_ != null) { result.agent_ = serviceTokenAgentBuilder_.build(); } if (agentCase_ == 3 && engineAgentBuilder_ != null) { result.agent_ = engineAgentBuilder_.build(); } if (agentCase_ == 4 && tenantAgentBuilder_ != null) { result.agent_ = tenantAgentBuilder_.build(); } if (agentCase_ == 5 && metadataServiceAgentBuilder_ != null) { result.agent_ = metadataServiceAgentBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.Agent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.Agent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.Agent other) { if (other == ai.chalk.protos.chalk.auth.v1.Agent.getDefaultInstance()) return this; switch (other.getAgentCase()) { case USER_AGENT: { mergeUserAgent(other.getUserAgent()); break; } case SERVICE_TOKEN_AGENT: { mergeServiceTokenAgent(other.getServiceTokenAgent()); break; } case ENGINE_AGENT: { mergeEngineAgent(other.getEngineAgent()); break; } case TENANT_AGENT: { mergeTenantAgent(other.getTenantAgent()); break; } case METADATA_SERVICE_AGENT: { mergeMetadataServiceAgent(other.getMetadataServiceAgent()); break; } case AGENT_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getUserAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 1; break; } // case 10 case 18: { input.readMessage( getServiceTokenAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 2; break; } // case 18 case 26: { input.readMessage( getEngineAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 3; break; } // case 26 case 34: { input.readMessage( getTenantAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 4; break; } // case 34 case 42: { input.readMessage( getMetadataServiceAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 5; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int agentCase_ = 0; private java.lang.Object agent_; public AgentCase getAgentCase() { return AgentCase.forNumber( agentCase_); } public Builder clearAgent() { agentCase_ = 0; agent_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.UserAgent, ai.chalk.protos.chalk.auth.v1.UserAgent.Builder, ai.chalk.protos.chalk.auth.v1.UserAgentOrBuilder> userAgentBuilder_; /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return Whether the userAgent field is set. */ @java.lang.Override public boolean hasUserAgent() { return agentCase_ == 1; } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return The userAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.UserAgent getUserAgent() { if (userAgentBuilder_ == null) { if (agentCase_ == 1) { return (ai.chalk.protos.chalk.auth.v1.UserAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.UserAgent.getDefaultInstance(); } else { if (agentCase_ == 1) { return userAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.UserAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public Builder setUserAgent(ai.chalk.protos.chalk.auth.v1.UserAgent value) { if (userAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { userAgentBuilder_.setMessage(value); } agentCase_ = 1; return this; } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public Builder setUserAgent( ai.chalk.protos.chalk.auth.v1.UserAgent.Builder builderForValue) { if (userAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { userAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 1; return this; } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public Builder mergeUserAgent(ai.chalk.protos.chalk.auth.v1.UserAgent value) { if (userAgentBuilder_ == null) { if (agentCase_ == 1 && agent_ != ai.chalk.protos.chalk.auth.v1.UserAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.UserAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.UserAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 1) { userAgentBuilder_.mergeFrom(value); } else { userAgentBuilder_.setMessage(value); } } agentCase_ = 1; return this; } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public Builder clearUserAgent() { if (userAgentBuilder_ == null) { if (agentCase_ == 1) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 1) { agentCase_ = 0; agent_ = null; } userAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.UserAgent.Builder getUserAgentBuilder() { return getUserAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.UserAgentOrBuilder getUserAgentOrBuilder() { if ((agentCase_ == 1) && (userAgentBuilder_ != null)) { return userAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 1) { return (ai.chalk.protos.chalk.auth.v1.UserAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.UserAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.UserAgent, ai.chalk.protos.chalk.auth.v1.UserAgent.Builder, ai.chalk.protos.chalk.auth.v1.UserAgentOrBuilder> getUserAgentFieldBuilder() { if (userAgentBuilder_ == null) { if (!(agentCase_ == 1)) { agent_ = ai.chalk.protos.chalk.auth.v1.UserAgent.getDefaultInstance(); } userAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.UserAgent, ai.chalk.protos.chalk.auth.v1.UserAgent.Builder, ai.chalk.protos.chalk.auth.v1.UserAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.UserAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 1; onChanged(); return userAgentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder> serviceTokenAgentBuilder_; /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return Whether the serviceTokenAgent field is set. */ @java.lang.Override public boolean hasServiceTokenAgent() { return agentCase_ == 2; } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return The serviceTokenAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent getServiceTokenAgent() { if (serviceTokenAgentBuilder_ == null) { if (agentCase_ == 2) { return (ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance(); } else { if (agentCase_ == 2) { return serviceTokenAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public Builder setServiceTokenAgent(ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent value) { if (serviceTokenAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { serviceTokenAgentBuilder_.setMessage(value); } agentCase_ = 2; return this; } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public Builder setServiceTokenAgent( ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder builderForValue) { if (serviceTokenAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { serviceTokenAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 2; return this; } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public Builder mergeServiceTokenAgent(ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent value) { if (serviceTokenAgentBuilder_ == null) { if (agentCase_ == 2 && agent_ != ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 2) { serviceTokenAgentBuilder_.mergeFrom(value); } else { serviceTokenAgentBuilder_.setMessage(value); } } agentCase_ = 2; return this; } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public Builder clearServiceTokenAgent() { if (serviceTokenAgentBuilder_ == null) { if (agentCase_ == 2) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 2) { agentCase_ = 0; agent_ = null; } serviceTokenAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder getServiceTokenAgentBuilder() { return getServiceTokenAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder getServiceTokenAgentOrBuilder() { if ((agentCase_ == 2) && (serviceTokenAgentBuilder_ != null)) { return serviceTokenAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 2) { return (ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder> getServiceTokenAgentFieldBuilder() { if (serviceTokenAgentBuilder_ == null) { if (!(agentCase_ == 2)) { agent_ = ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance(); } serviceTokenAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 2; onChanged(); return serviceTokenAgentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.EngineAgent, ai.chalk.protos.chalk.auth.v1.EngineAgent.Builder, ai.chalk.protos.chalk.auth.v1.EngineAgentOrBuilder> engineAgentBuilder_; /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return Whether the engineAgent field is set. */ @java.lang.Override public boolean hasEngineAgent() { return agentCase_ == 3; } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return The engineAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EngineAgent getEngineAgent() { if (engineAgentBuilder_ == null) { if (agentCase_ == 3) { return (ai.chalk.protos.chalk.auth.v1.EngineAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.EngineAgent.getDefaultInstance(); } else { if (agentCase_ == 3) { return engineAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.EngineAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public Builder setEngineAgent(ai.chalk.protos.chalk.auth.v1.EngineAgent value) { if (engineAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { engineAgentBuilder_.setMessage(value); } agentCase_ = 3; return this; } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public Builder setEngineAgent( ai.chalk.protos.chalk.auth.v1.EngineAgent.Builder builderForValue) { if (engineAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { engineAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 3; return this; } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public Builder mergeEngineAgent(ai.chalk.protos.chalk.auth.v1.EngineAgent value) { if (engineAgentBuilder_ == null) { if (agentCase_ == 3 && agent_ != ai.chalk.protos.chalk.auth.v1.EngineAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.EngineAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.EngineAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 3) { engineAgentBuilder_.mergeFrom(value); } else { engineAgentBuilder_.setMessage(value); } } agentCase_ = 3; return this; } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public Builder clearEngineAgent() { if (engineAgentBuilder_ == null) { if (agentCase_ == 3) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 3) { agentCase_ = 0; agent_ = null; } engineAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.EngineAgent.Builder getEngineAgentBuilder() { return getEngineAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EngineAgentOrBuilder getEngineAgentOrBuilder() { if ((agentCase_ == 3) && (engineAgentBuilder_ != null)) { return engineAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 3) { return (ai.chalk.protos.chalk.auth.v1.EngineAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.EngineAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.EngineAgent, ai.chalk.protos.chalk.auth.v1.EngineAgent.Builder, ai.chalk.protos.chalk.auth.v1.EngineAgentOrBuilder> getEngineAgentFieldBuilder() { if (engineAgentBuilder_ == null) { if (!(agentCase_ == 3)) { agent_ = ai.chalk.protos.chalk.auth.v1.EngineAgent.getDefaultInstance(); } engineAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.EngineAgent, ai.chalk.protos.chalk.auth.v1.EngineAgent.Builder, ai.chalk.protos.chalk.auth.v1.EngineAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.EngineAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 3; onChanged(); return engineAgentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.TenantAgent, ai.chalk.protos.chalk.auth.v1.TenantAgent.Builder, ai.chalk.protos.chalk.auth.v1.TenantAgentOrBuilder> tenantAgentBuilder_; /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return Whether the tenantAgent field is set. */ @java.lang.Override public boolean hasTenantAgent() { return agentCase_ == 4; } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return The tenantAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.TenantAgent getTenantAgent() { if (tenantAgentBuilder_ == null) { if (agentCase_ == 4) { return (ai.chalk.protos.chalk.auth.v1.TenantAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.TenantAgent.getDefaultInstance(); } else { if (agentCase_ == 4) { return tenantAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.TenantAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public Builder setTenantAgent(ai.chalk.protos.chalk.auth.v1.TenantAgent value) { if (tenantAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { tenantAgentBuilder_.setMessage(value); } agentCase_ = 4; return this; } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public Builder setTenantAgent( ai.chalk.protos.chalk.auth.v1.TenantAgent.Builder builderForValue) { if (tenantAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { tenantAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 4; return this; } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public Builder mergeTenantAgent(ai.chalk.protos.chalk.auth.v1.TenantAgent value) { if (tenantAgentBuilder_ == null) { if (agentCase_ == 4 && agent_ != ai.chalk.protos.chalk.auth.v1.TenantAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.TenantAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.TenantAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 4) { tenantAgentBuilder_.mergeFrom(value); } else { tenantAgentBuilder_.setMessage(value); } } agentCase_ = 4; return this; } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public Builder clearTenantAgent() { if (tenantAgentBuilder_ == null) { if (agentCase_ == 4) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 4) { agentCase_ = 0; agent_ = null; } tenantAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.TenantAgent.Builder getTenantAgentBuilder() { return getTenantAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.TenantAgentOrBuilder getTenantAgentOrBuilder() { if ((agentCase_ == 4) && (tenantAgentBuilder_ != null)) { return tenantAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 4) { return (ai.chalk.protos.chalk.auth.v1.TenantAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.TenantAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.TenantAgent, ai.chalk.protos.chalk.auth.v1.TenantAgent.Builder, ai.chalk.protos.chalk.auth.v1.TenantAgentOrBuilder> getTenantAgentFieldBuilder() { if (tenantAgentBuilder_ == null) { if (!(agentCase_ == 4)) { agent_ = ai.chalk.protos.chalk.auth.v1.TenantAgent.getDefaultInstance(); } tenantAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.TenantAgent, ai.chalk.protos.chalk.auth.v1.TenantAgent.Builder, ai.chalk.protos.chalk.auth.v1.TenantAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.TenantAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 4; onChanged(); return tenantAgentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent, ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.Builder, ai.chalk.protos.chalk.auth.v1.MetadataServiceAgentOrBuilder> metadataServiceAgentBuilder_; /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return Whether the metadataServiceAgent field is set. */ @java.lang.Override public boolean hasMetadataServiceAgent() { return agentCase_ == 5; } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return The metadataServiceAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent getMetadataServiceAgent() { if (metadataServiceAgentBuilder_ == null) { if (agentCase_ == 5) { return (ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.getDefaultInstance(); } else { if (agentCase_ == 5) { return metadataServiceAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public Builder setMetadataServiceAgent(ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent value) { if (metadataServiceAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { metadataServiceAgentBuilder_.setMessage(value); } agentCase_ = 5; return this; } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public Builder setMetadataServiceAgent( ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.Builder builderForValue) { if (metadataServiceAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { metadataServiceAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 5; return this; } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public Builder mergeMetadataServiceAgent(ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent value) { if (metadataServiceAgentBuilder_ == null) { if (agentCase_ == 5 && agent_ != ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 5) { metadataServiceAgentBuilder_.mergeFrom(value); } else { metadataServiceAgentBuilder_.setMessage(value); } } agentCase_ = 5; return this; } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public Builder clearMetadataServiceAgent() { if (metadataServiceAgentBuilder_ == null) { if (agentCase_ == 5) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 5) { agentCase_ = 0; agent_ = null; } metadataServiceAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.Builder getMetadataServiceAgentBuilder() { return getMetadataServiceAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.MetadataServiceAgentOrBuilder getMetadataServiceAgentOrBuilder() { if ((agentCase_ == 5) && (metadataServiceAgentBuilder_ != null)) { return metadataServiceAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 5) { return (ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent, ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.Builder, ai.chalk.protos.chalk.auth.v1.MetadataServiceAgentOrBuilder> getMetadataServiceAgentFieldBuilder() { if (metadataServiceAgentBuilder_ == null) { if (!(agentCase_ == 5)) { agent_ = ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.getDefaultInstance(); } metadataServiceAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent, ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.Builder, ai.chalk.protos.chalk.auth.v1.MetadataServiceAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 5; onChanged(); return metadataServiceAgentBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.Agent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.Agent) private static final ai.chalk.protos.chalk.auth.v1.Agent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.Agent(); } public static ai.chalk.protos.chalk.auth.v1.Agent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Agent> PARSER = new com.google.protobuf.AbstractParser<Agent>() { @java.lang.Override public Agent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<Agent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Agent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.Agent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/AgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface AgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.Agent) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return Whether the userAgent field is set. */ boolean hasUserAgent(); /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return The userAgent. */ ai.chalk.protos.chalk.auth.v1.UserAgent getUserAgent(); /** * <code>.chalk.auth.v1.UserAgent user_agent = 1 [json_name = "userAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.UserAgentOrBuilder getUserAgentOrBuilder(); /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return Whether the serviceTokenAgent field is set. */ boolean hasServiceTokenAgent(); /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return The serviceTokenAgent. */ ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent getServiceTokenAgent(); /** * <code>.chalk.auth.v1.ServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder getServiceTokenAgentOrBuilder(); /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return Whether the engineAgent field is set. */ boolean hasEngineAgent(); /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return The engineAgent. */ ai.chalk.protos.chalk.auth.v1.EngineAgent getEngineAgent(); /** * <code>.chalk.auth.v1.EngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.EngineAgentOrBuilder getEngineAgentOrBuilder(); /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return Whether the tenantAgent field is set. */ boolean hasTenantAgent(); /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return The tenantAgent. */ ai.chalk.protos.chalk.auth.v1.TenantAgent getTenantAgent(); /** * <code>.chalk.auth.v1.TenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.TenantAgentOrBuilder getTenantAgentOrBuilder(); /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return Whether the metadataServiceAgent field is set. */ boolean hasMetadataServiceAgent(); /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return The metadataServiceAgent. */ ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent getMetadataServiceAgent(); /** * <code>.chalk.auth.v1.MetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.MetadataServiceAgentOrBuilder getMetadataServiceAgentOrBuilder(); ai.chalk.protos.chalk.auth.v1.Agent.AgentCase getAgentCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/AgentProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public final class AgentProto { private AgentProto() {} 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_chalk_auth_v1_EnvironmentPermissions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_EnvironmentPermissions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_UserAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_UserAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_UserAgent_PermissionsByEnvironmentEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_UserAgent_PermissionsByEnvironmentEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_CustomClaim_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_CustomClaim_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_ServiceTokenAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_ServiceTokenAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_EngineAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_EngineAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_MetadataServiceAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_MetadataServiceAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_TenantAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_TenantAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_Agent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_Agent_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\031chalk/auth/v1/agent.proto\022\rchalk.auth." + "v1\032%chalk/auth/v1/featurepermission.prot" + "o\032\037chalk/auth/v1/permissions.proto\"\356\001\n\026E" + "nvironmentPermissions\022;\n\013permissions\030\002 \003" + "(\0162\031.chalk.auth.v1.PermissionR\013permissio" + "ns\022R\n\023feature_permissions\030\003 \001(\0132!.chalk." + "auth.v1.FeaturePermissionsR\022featurePermi" + "ssions\022C\n\017customer_claims\030\004 \003(\0132\032.chalk." + "auth.v1.CustomClaimR\016customerClaims\"\354\002\n\t" + "UserAgent\022\037\n\tclient_id\030\001 \001(\tB\002\030\001R\010client" + "Id\022\027\n\007user_id\030\002 \001(\tR\006userId\022\027\n\007team_id\030\003" + " \001(\tR\006teamId\022t\n\032permissions_by_environme" + "nt\030\004 \003(\01326.chalk.auth.v1.UserAgent.Permi" + "ssionsByEnvironmentEntryR\030permissionsByE" + "nvironment\022\"\n\014impersonated\030\005 \001(\010R\014impers" + "onated\032r\n\035PermissionsByEnvironmentEntry\022" + "\020\n\003key\030\001 \001(\tR\003key\022;\n\005value\030\002 \001(\0132%.chalk" + ".auth.v1.EnvironmentPermissionsR\005value:\002" + "8\001\"7\n\013CustomClaim\022\020\n\003key\030\001 \001(\tR\003key\022\026\n\006v" + "alues\030\002 \003(\tR\006values\"\372\002\n\021ServiceTokenAgen" + "t\022\016\n\002id\030\001 \001(\tR\002id\022\033\n\tclient_id\030\002 \001(\tR\010cl" + "ientId\022\027\n\007team_id\030\003 \001(\tR\006teamId\022 \n\013envir" + "onment\030\004 \001(\tR\013environment\022;\n\013permissions" + "\030\005 \003(\0162\031.chalk.auth.v1.PermissionR\013permi" + "ssions\022\'\n\rcustom_claims\030\006 \003(\tB\002\030\001R\014custo" + "mClaims\022C\n\017customer_claims\030\007 \003(\0132\032.chalk" + ".auth.v1.CustomClaimR\016customerClaims\022R\n\023" + "feature_permissions\030\010 \001(\0132!.chalk.auth.v" + "1.FeaturePermissionsR\022featurePermissions" + "\"\240\001\n\013EngineAgent\022\016\n\002id\030\001 \001(\tR\002id\022\027\n\007team" + "_id\030\002 \001(\tR\006teamId\022\035\n\nproject_id\030\003 \001(\tR\tp" + "rojectId\022%\n\016environment_id\030\004 \001(\tR\renviro" + "nmentId\022\"\n\014impersonated\030\005 \001(\010R\014impersona" + "ted\"\026\n\024MetadataServiceAgent\"\r\n\013TenantAge" + "nt\"\376\002\n\005Agent\0229\n\nuser_agent\030\001 \001(\0132\030.chalk" + ".auth.v1.UserAgentH\000R\tuserAgent\022R\n\023servi" + "ce_token_agent\030\002 \001(\0132 .chalk.auth.v1.Ser" + "viceTokenAgentH\000R\021serviceTokenAgent\022?\n\014e" + "ngine_agent\030\003 \001(\0132\032.chalk.auth.v1.Engine" + "AgentH\000R\013engineAgent\022?\n\014tenant_agent\030\004 \001" + "(\0132\032.chalk.auth.v1.TenantAgentH\000R\013tenant" + "Agent\022[\n\026metadata_service_agent\030\005 \001(\0132#." + "chalk.auth.v1.MetadataServiceAgentH\000R\024me" + "tadataServiceAgentB\007\n\005agentB\221\001\n\035ai.chalk" + ".protos.chalk.auth.v1B\nAgentProtoP\001Z\016aut" + "h/v1;authv1\242\002\003CAX\252\002\rChalk.Auth.V1\312\002\rChal" + "k\\Auth\\V1\342\002\031Chalk\\Auth\\V1\\GPBMetadata\352\002\017" + "Chalk::Auth::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.getDescriptor(), ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(), }); internal_static_chalk_auth_v1_EnvironmentPermissions_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_auth_v1_EnvironmentPermissions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_EnvironmentPermissions_descriptor, new java.lang.String[] { "Permissions", "FeaturePermissions", "CustomerClaims", }); internal_static_chalk_auth_v1_UserAgent_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_chalk_auth_v1_UserAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_UserAgent_descriptor, new java.lang.String[] { "ClientId", "UserId", "TeamId", "PermissionsByEnvironment", "Impersonated", }); internal_static_chalk_auth_v1_UserAgent_PermissionsByEnvironmentEntry_descriptor = internal_static_chalk_auth_v1_UserAgent_descriptor.getNestedTypes().get(0); internal_static_chalk_auth_v1_UserAgent_PermissionsByEnvironmentEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_UserAgent_PermissionsByEnvironmentEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_auth_v1_CustomClaim_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_chalk_auth_v1_CustomClaim_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_CustomClaim_descriptor, new java.lang.String[] { "Key", "Values", }); internal_static_chalk_auth_v1_ServiceTokenAgent_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_chalk_auth_v1_ServiceTokenAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_ServiceTokenAgent_descriptor, new java.lang.String[] { "Id", "ClientId", "TeamId", "Environment", "Permissions", "CustomClaims", "CustomerClaims", "FeaturePermissions", }); internal_static_chalk_auth_v1_EngineAgent_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_chalk_auth_v1_EngineAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_EngineAgent_descriptor, new java.lang.String[] { "Id", "TeamId", "ProjectId", "EnvironmentId", "Impersonated", }); internal_static_chalk_auth_v1_MetadataServiceAgent_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_chalk_auth_v1_MetadataServiceAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_MetadataServiceAgent_descriptor, new java.lang.String[] { }); internal_static_chalk_auth_v1_TenantAgent_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_chalk_auth_v1_TenantAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_TenantAgent_descriptor, new java.lang.String[] { }); internal_static_chalk_auth_v1_Agent_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_chalk_auth_v1_Agent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_Agent_descriptor, new java.lang.String[] { "UserAgent", "ServiceTokenAgent", "EngineAgent", "TenantAgent", "MetadataServiceAgent", "Agent", }); ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.getDescriptor(); ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/AuditLevel.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/audit.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf enum {@code chalk.auth.v1.AuditLevel} */ public enum AuditLevel implements com.google.protobuf.ProtocolMessageEnum { /** * <code>AUDIT_LEVEL_UNSPECIFIED = 0;</code> */ AUDIT_LEVEL_UNSPECIFIED(0), /** * <code>AUDIT_LEVEL_ERRORS = 1;</code> */ AUDIT_LEVEL_ERRORS(1), /** * <code>AUDIT_LEVEL_ALL = 2;</code> */ AUDIT_LEVEL_ALL(2), UNRECOGNIZED(-1), ; /** * <code>AUDIT_LEVEL_UNSPECIFIED = 0;</code> */ public static final int AUDIT_LEVEL_UNSPECIFIED_VALUE = 0; /** * <code>AUDIT_LEVEL_ERRORS = 1;</code> */ public static final int AUDIT_LEVEL_ERRORS_VALUE = 1; /** * <code>AUDIT_LEVEL_ALL = 2;</code> */ public static final int AUDIT_LEVEL_ALL_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; } /** * @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 AuditLevel 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 AuditLevel forNumber(int value) { switch (value) { case 0: return AUDIT_LEVEL_UNSPECIFIED; case 1: return AUDIT_LEVEL_ERRORS; case 2: return AUDIT_LEVEL_ALL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<AuditLevel> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AuditLevel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<AuditLevel>() { public AuditLevel findValueByNumber(int number) { return AuditLevel.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 ai.chalk.protos.chalk.auth.v1.AuditProto.getDescriptor().getEnumTypes().get(0); } private static final AuditLevel[] VALUES = values(); public static AuditLevel 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 AuditLevel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.auth.v1.AuditLevel) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/AuditOptions.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/audit.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.AuditOptions} */ public final class AuditOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.AuditOptions) AuditOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use AuditOptions.newBuilder() to construct. private AuditOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private AuditOptions() { level_ = 0; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AuditOptions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AuditProto.internal_static_chalk_auth_v1_AuditOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AuditProto.internal_static_chalk_auth_v1_AuditOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.AuditOptions.class, ai.chalk.protos.chalk.auth.v1.AuditOptions.Builder.class); } public static final int LEVEL_FIELD_NUMBER = 1; private int level_ = 0; /** * <code>.chalk.auth.v1.AuditLevel level = 1 [json_name = "level"];</code> * @return The enum numeric value on the wire for level. */ @java.lang.Override public int getLevelValue() { return level_; } /** * <code>.chalk.auth.v1.AuditLevel level = 1 [json_name = "level"];</code> * @return The level. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.AuditLevel getLevel() { ai.chalk.protos.chalk.auth.v1.AuditLevel result = ai.chalk.protos.chalk.auth.v1.AuditLevel.forNumber(level_); return result == null ? ai.chalk.protos.chalk.auth.v1.AuditLevel.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * <code>string description = 2 [json_name = "description"];</code> * @return The description. */ @java.lang.Override 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; } } /** * <code>string description = 2 [json_name = "description"];</code> * @return The bytes for description. */ @java.lang.Override 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 (level_ != ai.chalk.protos.chalk.auth.v1.AuditLevel.AUDIT_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(1, level_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (level_ != ai.chalk.protos.chalk.auth.v1.AuditLevel.AUDIT_LEVEL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, level_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.AuditOptions)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.AuditOptions other = (ai.chalk.protos.chalk.auth.v1.AuditOptions) obj; if (level_ != other.level_) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LEVEL_FIELD_NUMBER; hash = (53 * hash) + level_; hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.AuditOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions 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 ai.chalk.protos.chalk.auth.v1.AuditOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions 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 ai.chalk.protos.chalk.auth.v1.AuditOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions 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(ai.chalk.protos.chalk.auth.v1.AuditOptions 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; } /** * Protobuf type {@code chalk.auth.v1.AuditOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.AuditOptions) ai.chalk.protos.chalk.auth.v1.AuditOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AuditProto.internal_static_chalk_auth_v1_AuditOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AuditProto.internal_static_chalk_auth_v1_AuditOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.AuditOptions.class, ai.chalk.protos.chalk.auth.v1.AuditOptions.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.AuditOptions.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; level_ = 0; description_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.AuditProto.internal_static_chalk_auth_v1_AuditOptions_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.AuditOptions getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.AuditOptions.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.AuditOptions build() { ai.chalk.protos.chalk.auth.v1.AuditOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.AuditOptions buildPartial() { ai.chalk.protos.chalk.auth.v1.AuditOptions result = new ai.chalk.protos.chalk.auth.v1.AuditOptions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.AuditOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.level_ = level_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.AuditOptions) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.AuditOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.AuditOptions other) { if (other == ai.chalk.protos.chalk.auth.v1.AuditOptions.getDefaultInstance()) return this; if (other.level_ != 0) { setLevelValue(other.getLevelValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { level_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int level_ = 0; /** * <code>.chalk.auth.v1.AuditLevel level = 1 [json_name = "level"];</code> * @return The enum numeric value on the wire for level. */ @java.lang.Override public int getLevelValue() { return level_; } /** * <code>.chalk.auth.v1.AuditLevel level = 1 [json_name = "level"];</code> * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ public Builder setLevelValue(int value) { level_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.auth.v1.AuditLevel level = 1 [json_name = "level"];</code> * @return The level. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.AuditLevel getLevel() { ai.chalk.protos.chalk.auth.v1.AuditLevel result = ai.chalk.protos.chalk.auth.v1.AuditLevel.forNumber(level_); return result == null ? ai.chalk.protos.chalk.auth.v1.AuditLevel.UNRECOGNIZED : result; } /** * <code>.chalk.auth.v1.AuditLevel level = 1 [json_name = "level"];</code> * @param value The level to set. * @return This builder for chaining. */ public Builder setLevel(ai.chalk.protos.chalk.auth.v1.AuditLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; level_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.auth.v1.AuditLevel level = 1 [json_name = "level"];</code> * @return This builder for chaining. */ public Builder clearLevel() { bitField0_ = (bitField0_ & ~0x00000001); level_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** * <code>string description = 2 [json_name = "description"];</code> * @return The description. */ 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; } } /** * <code>string description = 2 [json_name = "description"];</code> * @return The bytes for description. */ 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; } } /** * <code>string description = 2 [json_name = "description"];</code> * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string description = 2 [json_name = "description"];</code> * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string description = 2 [json_name = "description"];</code> * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.AuditOptions) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.AuditOptions) private static final ai.chalk.protos.chalk.auth.v1.AuditOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.AuditOptions(); } public static ai.chalk.protos.chalk.auth.v1.AuditOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<AuditOptions> PARSER = new com.google.protobuf.AbstractParser<AuditOptions>() { @java.lang.Override public AuditOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<AuditOptions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<AuditOptions> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.AuditOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/AuditOptionsOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/audit.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface AuditOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.AuditOptions) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.auth.v1.AuditLevel level = 1 [json_name = "level"];</code> * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** * <code>.chalk.auth.v1.AuditLevel level = 1 [json_name = "level"];</code> * @return The level. */ ai.chalk.protos.chalk.auth.v1.AuditLevel getLevel(); /** * <code>string description = 2 [json_name = "description"];</code> * @return The description. */ java.lang.String getDescription(); /** * <code>string description = 2 [json_name = "description"];</code> * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/AuditProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/audit.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public final class AuditProto { private AuditProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { registry.add(ai.chalk.protos.chalk.auth.v1.AuditProto.audit); } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public static final int AUDIT_FIELD_NUMBER = 30001; /** * <code>extend .google.protobuf.MethodOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, ai.chalk.protos.chalk.auth.v1.AuditOptions> audit = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( ai.chalk.protos.chalk.auth.v1.AuditOptions.class, ai.chalk.protos.chalk.auth.v1.AuditOptions.getDefaultInstance()); static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_AuditOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_AuditOptions_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\031chalk/auth/v1/audit.proto\022\rchalk.auth." + "v1\032 google/protobuf/descriptor.proto\"a\n\014" + "AuditOptions\022/\n\005level\030\001 \001(\0162\031.chalk.auth" + ".v1.AuditLevelR\005level\022 \n\013description\030\002 \001" + "(\tR\013description*V\n\nAuditLevel\022\033\n\027AUDIT_L" + "EVEL_UNSPECIFIED\020\000\022\026\n\022AUDIT_LEVEL_ERRORS" + "\020\001\022\023\n\017AUDIT_LEVEL_ALL\020\002:V\n\005audit\022\036.googl" + "e.protobuf.MethodOptions\030\261\352\001 \001(\0132\033.chalk" + ".auth.v1.AuditOptionsR\005audit\210\001\001B\221\001\n\035ai.c" + "halk.protos.chalk.auth.v1B\nAuditProtoP\001Z" + "\016auth/v1;authv1\242\002\003CAX\252\002\rChalk.Auth.V1\312\002\r" + "Chalk\\Auth\\V1\342\002\031Chalk\\Auth\\V1\\GPBMetadat" + "a\352\002\017Chalk::Auth::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DescriptorProtos.getDescriptor(), }); internal_static_chalk_auth_v1_AuditOptions_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_auth_v1_AuditOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_AuditOptions_descriptor, new java.lang.String[] { "Level", "Description", }); audit.internalInit(descriptor.getExtensions().get(0)); com.google.protobuf.DescriptorProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/CustomClaim.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.CustomClaim} */ public final class CustomClaim extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.CustomClaim) CustomClaimOrBuilder { private static final long serialVersionUID = 0L; // Use CustomClaim.newBuilder() to construct. private CustomClaim(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private CustomClaim() { key_ = ""; values_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CustomClaim(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_CustomClaim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_CustomClaim_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.CustomClaim.class, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * <code>string key = 1 [json_name = "key"];</code> * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** * <code>string key = 1 [json_name = "key"];</code> * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, values_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.CustomClaim)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.CustomClaim other = (ai.chalk.protos.chalk.auth.v1.CustomClaim) obj; if (!getKey() .equals(other.getKey())) return false; if (!getValuesList() .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.CustomClaim parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim 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 ai.chalk.protos.chalk.auth.v1.CustomClaim parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim 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 ai.chalk.protos.chalk.auth.v1.CustomClaim parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim 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(ai.chalk.protos.chalk.auth.v1.CustomClaim 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; } /** * Protobuf type {@code chalk.auth.v1.CustomClaim} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.CustomClaim) ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_CustomClaim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_CustomClaim_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.CustomClaim.class, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.CustomClaim.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; values_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_CustomClaim_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.CustomClaim getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.CustomClaim.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.CustomClaim build() { ai.chalk.protos.chalk.auth.v1.CustomClaim result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.CustomClaim buildPartial() { ai.chalk.protos.chalk.auth.v1.CustomClaim result = new ai.chalk.protos.chalk.auth.v1.CustomClaim(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.CustomClaim result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { values_.makeImmutable(); result.values_ = values_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.CustomClaim) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.CustomClaim)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.CustomClaim other) { if (other == ai.chalk.protos.chalk.auth.v1.CustomClaim.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ |= 0x00000002; } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureValuesIsMutable(); values_.add(s); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * <code>string key = 1 [json_name = "key"];</code> * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string key = 1 [json_name = "key"];</code> * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string key = 1 [json_name = "key"];</code> * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string key = 1 [json_name = "key"];</code> * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string key = 1 [json_name = "key"];</code> * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = new com.google.protobuf.LazyStringArrayList(values_); } bitField0_ |= 0x00000002; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { values_.makeImmutable(); return values_; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ public Builder setValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param value The values to add. * @return This builder for chaining. */ public Builder addValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable<java.lang.String> values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return This builder for chaining. */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param value The bytes of the values to add. * @return This builder for chaining. */ public Builder addValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.CustomClaim) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.CustomClaim) private static final ai.chalk.protos.chalk.auth.v1.CustomClaim DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.CustomClaim(); } public static ai.chalk.protos.chalk.auth.v1.CustomClaim getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<CustomClaim> PARSER = new com.google.protobuf.AbstractParser<CustomClaim>() { @java.lang.Override public CustomClaim parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<CustomClaim> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<CustomClaim> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.CustomClaim getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/CustomClaimOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface CustomClaimOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.CustomClaim) com.google.protobuf.MessageOrBuilder { /** * <code>string key = 1 [json_name = "key"];</code> * @return The key. */ java.lang.String getKey(); /** * <code>string key = 1 [json_name = "key"];</code> * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return A list containing the values. */ java.util.List<java.lang.String> getValuesList(); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return The count of values. */ int getValuesCount(); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the value to return. * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.DisplayAgent} */ public final class DisplayAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.DisplayAgent) DisplayAgentOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayAgent.newBuilder() to construct. private DisplayAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DisplayAgent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayAgent.Builder.class); } private int agentCase_ = 0; @SuppressWarnings("serial") private java.lang.Object agent_; public enum AgentCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { USER_AGENT(1), SERVICE_TOKEN_AGENT(2), ENGINE_AGENT(3), TENANT_AGENT(4), METADATA_SERVICE_AGENT(5), AGENT_NOT_SET(0); private final int value; private AgentCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AgentCase valueOf(int value) { return forNumber(value); } public static AgentCase forNumber(int value) { switch (value) { case 1: return USER_AGENT; case 2: return SERVICE_TOKEN_AGENT; case 3: return ENGINE_AGENT; case 4: return TENANT_AGENT; case 5: return METADATA_SERVICE_AGENT; case 0: return AGENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AgentCase getAgentCase() { return AgentCase.forNumber( agentCase_); } public static final int USER_AGENT_FIELD_NUMBER = 1; /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return Whether the userAgent field is set. */ @java.lang.Override public boolean hasUserAgent() { return agentCase_ == 1; } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return The userAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayUserAgent getUserAgent() { if (agentCase_ == 1) { return (ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayUserAgentOrBuilder getUserAgentOrBuilder() { if (agentCase_ == 1) { return (ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.getDefaultInstance(); } public static final int SERVICE_TOKEN_AGENT_FIELD_NUMBER = 2; /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return Whether the serviceTokenAgent field is set. */ @java.lang.Override public boolean hasServiceTokenAgent() { return agentCase_ == 2; } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return The serviceTokenAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent getServiceTokenAgent() { if (agentCase_ == 2) { return (ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgentOrBuilder getServiceTokenAgentOrBuilder() { if (agentCase_ == 2) { return (ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.getDefaultInstance(); } public static final int ENGINE_AGENT_FIELD_NUMBER = 3; /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return Whether the engineAgent field is set. */ @java.lang.Override public boolean hasEngineAgent() { return agentCase_ == 3; } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return The engineAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent getEngineAgent() { if (agentCase_ == 3) { return (ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEngineAgentOrBuilder getEngineAgentOrBuilder() { if (agentCase_ == 3) { return (ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.getDefaultInstance(); } public static final int TENANT_AGENT_FIELD_NUMBER = 4; /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return Whether the tenantAgent field is set. */ @java.lang.Override public boolean hasTenantAgent() { return agentCase_ == 4; } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return The tenantAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent getTenantAgent() { if (agentCase_ == 4) { return (ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayTenantAgentOrBuilder getTenantAgentOrBuilder() { if (agentCase_ == 4) { return (ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.getDefaultInstance(); } public static final int METADATA_SERVICE_AGENT_FIELD_NUMBER = 5; /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return Whether the metadataServiceAgent field is set. */ @java.lang.Override public boolean hasMetadataServiceAgent() { return agentCase_ == 5; } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return The metadataServiceAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent getMetadataServiceAgent() { if (agentCase_ == 5) { return (ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.getDefaultInstance(); } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgentOrBuilder getMetadataServiceAgentOrBuilder() { if (agentCase_ == 5) { return (ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.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 (agentCase_ == 1) { output.writeMessage(1, (ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) agent_); } if (agentCase_ == 2) { output.writeMessage(2, (ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) agent_); } if (agentCase_ == 3) { output.writeMessage(3, (ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) agent_); } if (agentCase_ == 4) { output.writeMessage(4, (ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) agent_); } if (agentCase_ == 5) { output.writeMessage(5, (ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) agent_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (agentCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) agent_); } if (agentCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) agent_); } if (agentCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) agent_); } if (agentCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) agent_); } if (agentCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) agent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.DisplayAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.DisplayAgent other = (ai.chalk.protos.chalk.auth.v1.DisplayAgent) obj; if (!getAgentCase().equals(other.getAgentCase())) return false; switch (agentCase_) { case 1: if (!getUserAgent() .equals(other.getUserAgent())) return false; break; case 2: if (!getServiceTokenAgent() .equals(other.getServiceTokenAgent())) return false; break; case 3: if (!getEngineAgent() .equals(other.getEngineAgent())) return false; break; case 4: if (!getTenantAgent() .equals(other.getTenantAgent())) return false; break; case 5: if (!getMetadataServiceAgent() .equals(other.getMetadataServiceAgent())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (agentCase_) { case 1: hash = (37 * hash) + USER_AGENT_FIELD_NUMBER; hash = (53 * hash) + getUserAgent().hashCode(); break; case 2: hash = (37 * hash) + SERVICE_TOKEN_AGENT_FIELD_NUMBER; hash = (53 * hash) + getServiceTokenAgent().hashCode(); break; case 3: hash = (37 * hash) + ENGINE_AGENT_FIELD_NUMBER; hash = (53 * hash) + getEngineAgent().hashCode(); break; case 4: hash = (37 * hash) + TENANT_AGENT_FIELD_NUMBER; hash = (53 * hash) + getTenantAgent().hashCode(); break; case 5: hash = (37 * hash) + METADATA_SERVICE_AGENT_FIELD_NUMBER; hash = (53 * hash) + getMetadataServiceAgent().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent 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(ai.chalk.protos.chalk.auth.v1.DisplayAgent 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; } /** * Protobuf type {@code chalk.auth.v1.DisplayAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.DisplayAgent) ai.chalk.protos.chalk.auth.v1.DisplayAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.DisplayAgent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (userAgentBuilder_ != null) { userAgentBuilder_.clear(); } if (serviceTokenAgentBuilder_ != null) { serviceTokenAgentBuilder_.clear(); } if (engineAgentBuilder_ != null) { engineAgentBuilder_.clear(); } if (tenantAgentBuilder_ != null) { tenantAgentBuilder_.clear(); } if (metadataServiceAgentBuilder_ != null) { metadataServiceAgentBuilder_.clear(); } agentCase_ = 0; agent_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.DisplayAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayAgent build() { ai.chalk.protos.chalk.auth.v1.DisplayAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.DisplayAgent result = new ai.chalk.protos.chalk.auth.v1.DisplayAgent(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.DisplayAgent result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.auth.v1.DisplayAgent result) { result.agentCase_ = agentCase_; result.agent_ = this.agent_; if (agentCase_ == 1 && userAgentBuilder_ != null) { result.agent_ = userAgentBuilder_.build(); } if (agentCase_ == 2 && serviceTokenAgentBuilder_ != null) { result.agent_ = serviceTokenAgentBuilder_.build(); } if (agentCase_ == 3 && engineAgentBuilder_ != null) { result.agent_ = engineAgentBuilder_.build(); } if (agentCase_ == 4 && tenantAgentBuilder_ != null) { result.agent_ = tenantAgentBuilder_.build(); } if (agentCase_ == 5 && metadataServiceAgentBuilder_ != null) { result.agent_ = metadataServiceAgentBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.DisplayAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.DisplayAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.DisplayAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.DisplayAgent.getDefaultInstance()) return this; switch (other.getAgentCase()) { case USER_AGENT: { mergeUserAgent(other.getUserAgent()); break; } case SERVICE_TOKEN_AGENT: { mergeServiceTokenAgent(other.getServiceTokenAgent()); break; } case ENGINE_AGENT: { mergeEngineAgent(other.getEngineAgent()); break; } case TENANT_AGENT: { mergeTenantAgent(other.getTenantAgent()); break; } case METADATA_SERVICE_AGENT: { mergeMetadataServiceAgent(other.getMetadataServiceAgent()); break; } case AGENT_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getUserAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 1; break; } // case 10 case 18: { input.readMessage( getServiceTokenAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 2; break; } // case 18 case 26: { input.readMessage( getEngineAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 3; break; } // case 26 case 34: { input.readMessage( getTenantAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 4; break; } // case 34 case 42: { input.readMessage( getMetadataServiceAgentFieldBuilder().getBuilder(), extensionRegistry); agentCase_ = 5; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int agentCase_ = 0; private java.lang.Object agent_; public AgentCase getAgentCase() { return AgentCase.forNumber( agentCase_); } public Builder clearAgent() { agentCase_ = 0; agent_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayUserAgent, ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayUserAgentOrBuilder> userAgentBuilder_; /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return Whether the userAgent field is set. */ @java.lang.Override public boolean hasUserAgent() { return agentCase_ == 1; } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return The userAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayUserAgent getUserAgent() { if (userAgentBuilder_ == null) { if (agentCase_ == 1) { return (ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.getDefaultInstance(); } else { if (agentCase_ == 1) { return userAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public Builder setUserAgent(ai.chalk.protos.chalk.auth.v1.DisplayUserAgent value) { if (userAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { userAgentBuilder_.setMessage(value); } agentCase_ = 1; return this; } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public Builder setUserAgent( ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.Builder builderForValue) { if (userAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { userAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 1; return this; } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public Builder mergeUserAgent(ai.chalk.protos.chalk.auth.v1.DisplayUserAgent value) { if (userAgentBuilder_ == null) { if (agentCase_ == 1 && agent_ != ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 1) { userAgentBuilder_.mergeFrom(value); } else { userAgentBuilder_.setMessage(value); } } agentCase_ = 1; return this; } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public Builder clearUserAgent() { if (userAgentBuilder_ == null) { if (agentCase_ == 1) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 1) { agentCase_ = 0; agent_ = null; } userAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.Builder getUserAgentBuilder() { return getUserAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayUserAgentOrBuilder getUserAgentOrBuilder() { if ((agentCase_ == 1) && (userAgentBuilder_ != null)) { return userAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 1) { return (ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayUserAgent, ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayUserAgentOrBuilder> getUserAgentFieldBuilder() { if (userAgentBuilder_ == null) { if (!(agentCase_ == 1)) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.getDefaultInstance(); } userAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayUserAgent, ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayUserAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 1; onChanged(); return userAgentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent, ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgentOrBuilder> serviceTokenAgentBuilder_; /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return Whether the serviceTokenAgent field is set. */ @java.lang.Override public boolean hasServiceTokenAgent() { return agentCase_ == 2; } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return The serviceTokenAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent getServiceTokenAgent() { if (serviceTokenAgentBuilder_ == null) { if (agentCase_ == 2) { return (ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.getDefaultInstance(); } else { if (agentCase_ == 2) { return serviceTokenAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public Builder setServiceTokenAgent(ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent value) { if (serviceTokenAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { serviceTokenAgentBuilder_.setMessage(value); } agentCase_ = 2; return this; } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public Builder setServiceTokenAgent( ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.Builder builderForValue) { if (serviceTokenAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { serviceTokenAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 2; return this; } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public Builder mergeServiceTokenAgent(ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent value) { if (serviceTokenAgentBuilder_ == null) { if (agentCase_ == 2 && agent_ != ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 2) { serviceTokenAgentBuilder_.mergeFrom(value); } else { serviceTokenAgentBuilder_.setMessage(value); } } agentCase_ = 2; return this; } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public Builder clearServiceTokenAgent() { if (serviceTokenAgentBuilder_ == null) { if (agentCase_ == 2) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 2) { agentCase_ = 0; agent_ = null; } serviceTokenAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.Builder getServiceTokenAgentBuilder() { return getServiceTokenAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgentOrBuilder getServiceTokenAgentOrBuilder() { if ((agentCase_ == 2) && (serviceTokenAgentBuilder_ != null)) { return serviceTokenAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 2) { return (ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent, ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgentOrBuilder> getServiceTokenAgentFieldBuilder() { if (serviceTokenAgentBuilder_ == null) { if (!(agentCase_ == 2)) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.getDefaultInstance(); } serviceTokenAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent, ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 2; onChanged(); return serviceTokenAgentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent, ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayEngineAgentOrBuilder> engineAgentBuilder_; /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return Whether the engineAgent field is set. */ @java.lang.Override public boolean hasEngineAgent() { return agentCase_ == 3; } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return The engineAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent getEngineAgent() { if (engineAgentBuilder_ == null) { if (agentCase_ == 3) { return (ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.getDefaultInstance(); } else { if (agentCase_ == 3) { return engineAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public Builder setEngineAgent(ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent value) { if (engineAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { engineAgentBuilder_.setMessage(value); } agentCase_ = 3; return this; } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public Builder setEngineAgent( ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.Builder builderForValue) { if (engineAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { engineAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 3; return this; } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public Builder mergeEngineAgent(ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent value) { if (engineAgentBuilder_ == null) { if (agentCase_ == 3 && agent_ != ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 3) { engineAgentBuilder_.mergeFrom(value); } else { engineAgentBuilder_.setMessage(value); } } agentCase_ = 3; return this; } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public Builder clearEngineAgent() { if (engineAgentBuilder_ == null) { if (agentCase_ == 3) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 3) { agentCase_ = 0; agent_ = null; } engineAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.Builder getEngineAgentBuilder() { return getEngineAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEngineAgentOrBuilder getEngineAgentOrBuilder() { if ((agentCase_ == 3) && (engineAgentBuilder_ != null)) { return engineAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 3) { return (ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent, ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayEngineAgentOrBuilder> getEngineAgentFieldBuilder() { if (engineAgentBuilder_ == null) { if (!(agentCase_ == 3)) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.getDefaultInstance(); } engineAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent, ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayEngineAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 3; onChanged(); return engineAgentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent, ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayTenantAgentOrBuilder> tenantAgentBuilder_; /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return Whether the tenantAgent field is set. */ @java.lang.Override public boolean hasTenantAgent() { return agentCase_ == 4; } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return The tenantAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent getTenantAgent() { if (tenantAgentBuilder_ == null) { if (agentCase_ == 4) { return (ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.getDefaultInstance(); } else { if (agentCase_ == 4) { return tenantAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public Builder setTenantAgent(ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent value) { if (tenantAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { tenantAgentBuilder_.setMessage(value); } agentCase_ = 4; return this; } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public Builder setTenantAgent( ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.Builder builderForValue) { if (tenantAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { tenantAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 4; return this; } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public Builder mergeTenantAgent(ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent value) { if (tenantAgentBuilder_ == null) { if (agentCase_ == 4 && agent_ != ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 4) { tenantAgentBuilder_.mergeFrom(value); } else { tenantAgentBuilder_.setMessage(value); } } agentCase_ = 4; return this; } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public Builder clearTenantAgent() { if (tenantAgentBuilder_ == null) { if (agentCase_ == 4) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 4) { agentCase_ = 0; agent_ = null; } tenantAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.Builder getTenantAgentBuilder() { return getTenantAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayTenantAgentOrBuilder getTenantAgentOrBuilder() { if ((agentCase_ == 4) && (tenantAgentBuilder_ != null)) { return tenantAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 4) { return (ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent, ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayTenantAgentOrBuilder> getTenantAgentFieldBuilder() { if (tenantAgentBuilder_ == null) { if (!(agentCase_ == 4)) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.getDefaultInstance(); } tenantAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent, ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayTenantAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 4; onChanged(); return tenantAgentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent, ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgentOrBuilder> metadataServiceAgentBuilder_; /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return Whether the metadataServiceAgent field is set. */ @java.lang.Override public boolean hasMetadataServiceAgent() { return agentCase_ == 5; } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return The metadataServiceAgent. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent getMetadataServiceAgent() { if (metadataServiceAgentBuilder_ == null) { if (agentCase_ == 5) { return (ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.getDefaultInstance(); } else { if (agentCase_ == 5) { return metadataServiceAgentBuilder_.getMessage(); } return ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public Builder setMetadataServiceAgent(ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent value) { if (metadataServiceAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agent_ = value; onChanged(); } else { metadataServiceAgentBuilder_.setMessage(value); } agentCase_ = 5; return this; } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public Builder setMetadataServiceAgent( ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.Builder builderForValue) { if (metadataServiceAgentBuilder_ == null) { agent_ = builderForValue.build(); onChanged(); } else { metadataServiceAgentBuilder_.setMessage(builderForValue.build()); } agentCase_ = 5; return this; } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public Builder mergeMetadataServiceAgent(ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent value) { if (metadataServiceAgentBuilder_ == null) { if (agentCase_ == 5 && agent_ != ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.getDefaultInstance()) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.newBuilder((ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) agent_) .mergeFrom(value).buildPartial(); } else { agent_ = value; } onChanged(); } else { if (agentCase_ == 5) { metadataServiceAgentBuilder_.mergeFrom(value); } else { metadataServiceAgentBuilder_.setMessage(value); } } agentCase_ = 5; return this; } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public Builder clearMetadataServiceAgent() { if (metadataServiceAgentBuilder_ == null) { if (agentCase_ == 5) { agentCase_ = 0; agent_ = null; onChanged(); } } else { if (agentCase_ == 5) { agentCase_ = 0; agent_ = null; } metadataServiceAgentBuilder_.clear(); } return this; } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.Builder getMetadataServiceAgentBuilder() { return getMetadataServiceAgentFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgentOrBuilder getMetadataServiceAgentOrBuilder() { if ((agentCase_ == 5) && (metadataServiceAgentBuilder_ != null)) { return metadataServiceAgentBuilder_.getMessageOrBuilder(); } else { if (agentCase_ == 5) { return (ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) agent_; } return ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.getDefaultInstance(); } } /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent, ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgentOrBuilder> getMetadataServiceAgentFieldBuilder() { if (metadataServiceAgentBuilder_ == null) { if (!(agentCase_ == 5)) { agent_ = ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.getDefaultInstance(); } metadataServiceAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent, ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.Builder, ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgentOrBuilder>( (ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) agent_, getParentForChildren(), isClean()); agent_ = null; } agentCase_ = 5; onChanged(); return metadataServiceAgentBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.DisplayAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.DisplayAgent) private static final ai.chalk.protos.chalk.auth.v1.DisplayAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.DisplayAgent(); } public static ai.chalk.protos.chalk.auth.v1.DisplayAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DisplayAgent> PARSER = new com.google.protobuf.AbstractParser<DisplayAgent>() { @java.lang.Override public DisplayAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DisplayAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DisplayAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface DisplayAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.DisplayAgent) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return Whether the userAgent field is set. */ boolean hasUserAgent(); /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> * @return The userAgent. */ ai.chalk.protos.chalk.auth.v1.DisplayUserAgent getUserAgent(); /** * <code>.chalk.auth.v1.DisplayUserAgent user_agent = 1 [json_name = "userAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayUserAgentOrBuilder getUserAgentOrBuilder(); /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return Whether the serviceTokenAgent field is set. */ boolean hasServiceTokenAgent(); /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> * @return The serviceTokenAgent. */ ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent getServiceTokenAgent(); /** * <code>.chalk.auth.v1.DisplayServiceTokenAgent service_token_agent = 2 [json_name = "serviceTokenAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgentOrBuilder getServiceTokenAgentOrBuilder(); /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return Whether the engineAgent field is set. */ boolean hasEngineAgent(); /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> * @return The engineAgent. */ ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent getEngineAgent(); /** * <code>.chalk.auth.v1.DisplayEngineAgent engine_agent = 3 [json_name = "engineAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayEngineAgentOrBuilder getEngineAgentOrBuilder(); /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return Whether the tenantAgent field is set. */ boolean hasTenantAgent(); /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> * @return The tenantAgent. */ ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent getTenantAgent(); /** * <code>.chalk.auth.v1.DisplayTenantAgent tenant_agent = 4 [json_name = "tenantAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayTenantAgentOrBuilder getTenantAgentOrBuilder(); /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return Whether the metadataServiceAgent field is set. */ boolean hasMetadataServiceAgent(); /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> * @return The metadataServiceAgent. */ ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent getMetadataServiceAgent(); /** * <code>.chalk.auth.v1.DisplayMetadataServiceAgent metadata_service_agent = 5 [json_name = "metadataServiceAgent"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgentOrBuilder getMetadataServiceAgentOrBuilder(); ai.chalk.protos.chalk.auth.v1.DisplayAgent.AgentCase getAgentCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayCustomClaim.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.DisplayCustomClaim} */ public final class DisplayCustomClaim extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.DisplayCustomClaim) DisplayCustomClaimOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayCustomClaim.newBuilder() to construct. private DisplayCustomClaim(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DisplayCustomClaim() { key_ = ""; values_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayCustomClaim(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayCustomClaim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayCustomClaim_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.class, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * <code>string key = 1 [json_name = "key"];</code> * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** * <code>string key = 1 [json_name = "key"];</code> * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, values_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim other = (ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim) obj; if (!getKey() .equals(other.getKey())) return false; if (!getValuesList() .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim 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 ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim 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 ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim 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(ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim 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; } /** * Protobuf type {@code chalk.auth.v1.DisplayCustomClaim} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.DisplayCustomClaim) ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayCustomClaim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayCustomClaim_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.class, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; values_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayCustomClaim_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim build() { ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim buildPartial() { ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim result = new ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { values_.makeImmutable(); result.values_ = values_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim other) { if (other == ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ |= 0x00000002; } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureValuesIsMutable(); values_.add(s); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * <code>string key = 1 [json_name = "key"];</code> * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string key = 1 [json_name = "key"];</code> * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string key = 1 [json_name = "key"];</code> * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string key = 1 [json_name = "key"];</code> * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string key = 1 [json_name = "key"];</code> * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = new com.google.protobuf.LazyStringArrayList(values_); } bitField0_ |= 0x00000002; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { values_.makeImmutable(); return values_; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ public Builder setValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param value The values to add. * @return This builder for chaining. */ public Builder addValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable<java.lang.String> values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return This builder for chaining. */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param value The bytes of the values to add. * @return This builder for chaining. */ public Builder addValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.DisplayCustomClaim) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.DisplayCustomClaim) private static final ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim(); } public static ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DisplayCustomClaim> PARSER = new com.google.protobuf.AbstractParser<DisplayCustomClaim>() { @java.lang.Override public DisplayCustomClaim parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DisplayCustomClaim> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DisplayCustomClaim> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayCustomClaimOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface DisplayCustomClaimOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.DisplayCustomClaim) com.google.protobuf.MessageOrBuilder { /** * <code>string key = 1 [json_name = "key"];</code> * @return The key. */ java.lang.String getKey(); /** * <code>string key = 1 [json_name = "key"];</code> * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return A list containing the values. */ java.util.List<java.lang.String> getValuesList(); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @return The count of values. */ int getValuesCount(); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** * <code>repeated string values = 2 [json_name = "values"];</code> * @param index The index of the value to return. * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayEngineAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.DisplayEngineAgent} */ public final class DisplayEngineAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.DisplayEngineAgent) DisplayEngineAgentOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayEngineAgent.newBuilder() to construct. private DisplayEngineAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DisplayEngineAgent() { id_ = ""; teamId_ = ""; projectId_ = ""; environmentId_ = ""; teamName_ = ""; projectName_ = ""; environmentName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayEngineAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEngineAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEngineAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ @java.lang.Override 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ @java.lang.Override 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; } } public static final int TEAM_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object teamId_ = ""; /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The teamId. */ @java.lang.Override public java.lang.String getTeamId() { java.lang.Object ref = teamId_; 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(); teamId_ = s; return s; } } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The bytes for teamId. */ @java.lang.Override public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The projectId. */ @java.lang.Override public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; } } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The bytes for projectId. */ @java.lang.Override public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The environmentId. */ @java.lang.Override public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; 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(); environmentId_ = s; return s; } } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ @java.lang.Override public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IMPERSONATED_FIELD_NUMBER = 5; private boolean impersonated_ = false; /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ @java.lang.Override public boolean getImpersonated() { return impersonated_; } public static final int TEAM_NAME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object teamName_ = ""; /** * <code>string team_name = 6 [json_name = "teamName"];</code> * @return The teamName. */ @java.lang.Override public java.lang.String getTeamName() { java.lang.Object ref = teamName_; 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(); teamName_ = s; return s; } } /** * <code>string team_name = 6 [json_name = "teamName"];</code> * @return The bytes for teamName. */ @java.lang.Override public com.google.protobuf.ByteString getTeamNameBytes() { java.lang.Object ref = teamName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_NAME_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object projectName_ = ""; /** * <code>string project_name = 7 [json_name = "projectName"];</code> * @return The projectName. */ @java.lang.Override public java.lang.String getProjectName() { java.lang.Object ref = projectName_; 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(); projectName_ = s; return s; } } /** * <code>string project_name = 7 [json_name = "projectName"];</code> * @return The bytes for projectName. */ @java.lang.Override public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_NAME_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object environmentName_ = ""; /** * <code>string environment_name = 8 [json_name = "environmentName"];</code> * @return The environmentName. */ @java.lang.Override public java.lang.String getEnvironmentName() { java.lang.Object ref = environmentName_; 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(); environmentName_ = s; return s; } } /** * <code>string environment_name = 8 [json_name = "environmentName"];</code> * @return The bytes for environmentName. */ @java.lang.Override public com.google.protobuf.ByteString getEnvironmentNameBytes() { java.lang.Object ref = environmentName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentName_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, environmentId_); } if (impersonated_ != false) { output.writeBool(5, impersonated_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, teamName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, projectName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, environmentName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, environmentId_); } if (impersonated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, impersonated_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, teamName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, projectName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, environmentName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent other = (ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) obj; if (!getId() .equals(other.getId())) return false; if (!getTeamId() .equals(other.getTeamId())) return false; if (!getProjectId() .equals(other.getProjectId())) return false; if (!getEnvironmentId() .equals(other.getEnvironmentId())) return false; if (getImpersonated() != other.getImpersonated()) return false; if (!getTeamName() .equals(other.getTeamName())) return false; if (!getProjectName() .equals(other.getProjectName())) return false; if (!getEnvironmentName() .equals(other.getEnvironmentName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; hash = (53 * hash) + getTeamId().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentId().hashCode(); hash = (37 * hash) + IMPERSONATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getImpersonated()); hash = (37 * hash) + TEAM_NAME_FIELD_NUMBER; hash = (53 * hash) + getTeamName().hashCode(); hash = (37 * hash) + PROJECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getProjectName().hashCode(); hash = (37 * hash) + ENVIRONMENT_NAME_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent 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(ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent 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; } /** * Protobuf type {@code chalk.auth.v1.DisplayEngineAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.DisplayEngineAgent) ai.chalk.protos.chalk.auth.v1.DisplayEngineAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEngineAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEngineAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; teamId_ = ""; projectId_ = ""; environmentId_ = ""; impersonated_ = false; teamName_ = ""; projectName_ = ""; environmentName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEngineAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent build() { ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent result = new ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.teamId_ = teamId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.environmentId_ = environmentId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.impersonated_ = impersonated_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.teamName_ = teamName_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.projectName_ = projectName_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.environmentName_ = environmentName_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getTeamId().isEmpty()) { teamId_ = other.teamId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getEnvironmentId().isEmpty()) { environmentId_ = other.environmentId_; bitField0_ |= 0x00000008; onChanged(); } if (other.getImpersonated() != false) { setImpersonated(other.getImpersonated()); } if (!other.getTeamName().isEmpty()) { teamName_ = other.teamName_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getProjectName().isEmpty()) { projectName_ = other.projectName_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getEnvironmentName().isEmpty()) { environmentName_ = other.environmentName_; bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { teamId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { projectId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { environmentId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { impersonated_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { teamName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { projectName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { environmentName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string id = 1 [json_name = "id"];</code> * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string id = 1 [json_name = "id"];</code> * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object teamId_ = ""; /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The teamId. */ public java.lang.String getTeamId() { java.lang.Object ref = teamId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The bytes for teamId. */ public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @param value The teamId to set. * @return This builder for chaining. */ public Builder setTeamId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return This builder for chaining. */ public Builder clearTeamId() { teamId_ = getDefaultInstance().getTeamId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @param value The bytes for teamId to set. * @return This builder for chaining. */ public Builder setTeamIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object projectId_ = ""; /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The bytes for projectId. */ public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return This builder for chaining. */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @param value The bytes for projectId to set. * @return This builder for chaining. */ public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The environmentId. */ public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environmentId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @param value The environmentId to set. * @return This builder for chaining. */ public Builder setEnvironmentId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } environmentId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return This builder for chaining. */ public Builder clearEnvironmentId() { environmentId_ = getDefaultInstance().getEnvironmentId(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @param value The bytes for environmentId to set. * @return This builder for chaining. */ public Builder setEnvironmentIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); environmentId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private boolean impersonated_ ; /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ @java.lang.Override public boolean getImpersonated() { return impersonated_; } /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @param value The impersonated to set. * @return This builder for chaining. */ public Builder setImpersonated(boolean value) { impersonated_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return This builder for chaining. */ public Builder clearImpersonated() { bitField0_ = (bitField0_ & ~0x00000010); impersonated_ = false; onChanged(); return this; } private java.lang.Object teamName_ = ""; /** * <code>string team_name = 6 [json_name = "teamName"];</code> * @return The teamName. */ public java.lang.String getTeamName() { java.lang.Object ref = teamName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_name = 6 [json_name = "teamName"];</code> * @return The bytes for teamName. */ public com.google.protobuf.ByteString getTeamNameBytes() { java.lang.Object ref = teamName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_name = 6 [json_name = "teamName"];</code> * @param value The teamName to set. * @return This builder for chaining. */ public Builder setTeamName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>string team_name = 6 [json_name = "teamName"];</code> * @return This builder for chaining. */ public Builder clearTeamName() { teamName_ = getDefaultInstance().getTeamName(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * <code>string team_name = 6 [json_name = "teamName"];</code> * @param value The bytes for teamName to set. * @return This builder for chaining. */ public Builder setTeamNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object projectName_ = ""; /** * <code>string project_name = 7 [json_name = "projectName"];</code> * @return The projectName. */ public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string project_name = 7 [json_name = "projectName"];</code> * @return The bytes for projectName. */ public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string project_name = 7 [json_name = "projectName"];</code> * @param value The projectName to set. * @return This builder for chaining. */ public Builder setProjectName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * <code>string project_name = 7 [json_name = "projectName"];</code> * @return This builder for chaining. */ public Builder clearProjectName() { projectName_ = getDefaultInstance().getProjectName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * <code>string project_name = 7 [json_name = "projectName"];</code> * @param value The bytes for projectName to set. * @return This builder for chaining. */ public Builder setProjectNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object environmentName_ = ""; /** * <code>string environment_name = 8 [json_name = "environmentName"];</code> * @return The environmentName. */ public java.lang.String getEnvironmentName() { java.lang.Object ref = environmentName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environmentName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string environment_name = 8 [json_name = "environmentName"];</code> * @return The bytes for environmentName. */ public com.google.protobuf.ByteString getEnvironmentNameBytes() { java.lang.Object ref = environmentName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string environment_name = 8 [json_name = "environmentName"];</code> * @param value The environmentName to set. * @return This builder for chaining. */ public Builder setEnvironmentName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } environmentName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>string environment_name = 8 [json_name = "environmentName"];</code> * @return This builder for chaining. */ public Builder clearEnvironmentName() { environmentName_ = getDefaultInstance().getEnvironmentName(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * <code>string environment_name = 8 [json_name = "environmentName"];</code> * @param value The bytes for environmentName to set. * @return This builder for chaining. */ public Builder setEnvironmentNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); environmentName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.DisplayEngineAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.DisplayEngineAgent) private static final ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent(); } public static ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DisplayEngineAgent> PARSER = new com.google.protobuf.AbstractParser<DisplayEngineAgent>() { @java.lang.Override public DisplayEngineAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DisplayEngineAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DisplayEngineAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEngineAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayEngineAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface DisplayEngineAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.DisplayEngineAgent) com.google.protobuf.MessageOrBuilder { /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ java.lang.String getId(); /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The teamId. */ java.lang.String getTeamId(); /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The bytes for teamId. */ com.google.protobuf.ByteString getTeamIdBytes(); /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The projectId. */ java.lang.String getProjectId(); /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The bytes for projectId. */ com.google.protobuf.ByteString getProjectIdBytes(); /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The environmentId. */ java.lang.String getEnvironmentId(); /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ com.google.protobuf.ByteString getEnvironmentIdBytes(); /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ boolean getImpersonated(); /** * <code>string team_name = 6 [json_name = "teamName"];</code> * @return The teamName. */ java.lang.String getTeamName(); /** * <code>string team_name = 6 [json_name = "teamName"];</code> * @return The bytes for teamName. */ com.google.protobuf.ByteString getTeamNameBytes(); /** * <code>string project_name = 7 [json_name = "projectName"];</code> * @return The projectName. */ java.lang.String getProjectName(); /** * <code>string project_name = 7 [json_name = "projectName"];</code> * @return The bytes for projectName. */ com.google.protobuf.ByteString getProjectNameBytes(); /** * <code>string environment_name = 8 [json_name = "environmentName"];</code> * @return The environmentName. */ java.lang.String getEnvironmentName(); /** * <code>string environment_name = 8 [json_name = "environmentName"];</code> * @return The bytes for environmentName. */ com.google.protobuf.ByteString getEnvironmentNameBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayEnvironmentPermissions.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.DisplayEnvironmentPermissions} */ public final class DisplayEnvironmentPermissions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.DisplayEnvironmentPermissions) DisplayEnvironmentPermissionsOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayEnvironmentPermissions.newBuilder() to construct. private DisplayEnvironmentPermissions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DisplayEnvironmentPermissions() { environmentId_ = ""; environmentName_ = ""; projectId_ = ""; projectName_ = ""; permissions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayEnvironmentPermissions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.class, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder.class); } public static final int ENVIRONMENT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 1 [json_name = "environmentId"];</code> * @return The environmentId. */ @java.lang.Override public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; 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(); environmentId_ = s; return s; } } /** * <code>string environment_id = 1 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ @java.lang.Override public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object environmentName_ = ""; /** * <code>string environment_name = 2 [json_name = "environmentName"];</code> * @return The environmentName. */ @java.lang.Override public java.lang.String getEnvironmentName() { java.lang.Object ref = environmentName_; 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(); environmentName_ = s; return s; } } /** * <code>string environment_name = 2 [json_name = "environmentName"];</code> * @return The bytes for environmentName. */ @java.lang.Override public com.google.protobuf.ByteString getEnvironmentNameBytes() { java.lang.Object ref = environmentName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The projectId. */ @java.lang.Override public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; } } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The bytes for projectId. */ @java.lang.Override public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object projectName_ = ""; /** * <code>string project_name = 4 [json_name = "projectName"];</code> * @return The projectName. */ @java.lang.Override public java.lang.String getProjectName() { java.lang.Object ref = projectName_; 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(); projectName_ = s; return s; } } /** * <code>string project_name = 4 [json_name = "projectName"];</code> * @return The bytes for projectName. */ @java.lang.Override public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERMISSIONS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> permissions_; /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> getPermissionsList() { return permissions_; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> getPermissionsOrBuilderList() { return permissions_; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ @java.lang.Override public int getPermissionsCount() { return permissions_.size(); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayPermission getPermissions(int index) { return permissions_.get(index); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder getPermissionsOrBuilder( int index) { return permissions_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environmentId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, projectName_); } for (int i = 0; i < permissions_.size(); i++) { output.writeMessage(5, permissions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, environmentId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, projectName_); } for (int i = 0; i < permissions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, permissions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions other = (ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions) obj; if (!getEnvironmentId() .equals(other.getEnvironmentId())) return false; if (!getEnvironmentName() .equals(other.getEnvironmentName())) return false; if (!getProjectId() .equals(other.getProjectId())) return false; if (!getProjectName() .equals(other.getProjectName())) return false; if (!getPermissionsList() .equals(other.getPermissionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentId().hashCode(); hash = (37 * hash) + ENVIRONMENT_NAME_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentName().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + PROJECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getProjectName().hashCode(); if (getPermissionsCount() > 0) { hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getPermissionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions 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 ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions 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 ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions 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(ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions 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; } /** * Protobuf type {@code chalk.auth.v1.DisplayEnvironmentPermissions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.DisplayEnvironmentPermissions) ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.class, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; environmentId_ = ""; environmentName_ = ""; projectId_ = ""; projectName_ = ""; if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); } else { permissions_ = null; permissionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions build() { ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions buildPartial() { ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions result = new ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions result) { if (permissionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); bitField0_ = (bitField0_ & ~0x00000010); } result.permissions_ = permissions_; } else { result.permissions_ = permissionsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.environmentId_ = environmentId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.environmentName_ = environmentName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.projectName_ = projectName_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions other) { if (other == ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.getDefaultInstance()) return this; if (!other.getEnvironmentId().isEmpty()) { environmentId_ = other.environmentId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getEnvironmentName().isEmpty()) { environmentName_ = other.environmentName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getProjectName().isEmpty()) { projectName_ = other.projectName_; bitField0_ |= 0x00000008; onChanged(); } if (permissionsBuilder_ == null) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } } else { if (!other.permissions_.isEmpty()) { if (permissionsBuilder_.isEmpty()) { permissionsBuilder_.dispose(); permissionsBuilder_ = null; permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000010); permissionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPermissionsFieldBuilder() : null; } else { permissionsBuilder_.addAllMessages(other.permissions_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { environmentId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { environmentName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { projectId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { projectName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { ai.chalk.protos.chalk.auth.v1.DisplayPermission m = input.readMessage( ai.chalk.protos.chalk.auth.v1.DisplayPermission.parser(), extensionRegistry); if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(m); } else { permissionsBuilder_.addMessage(m); } break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 1 [json_name = "environmentId"];</code> * @return The environmentId. */ public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environmentId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string environment_id = 1 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string environment_id = 1 [json_name = "environmentId"];</code> * @param value The environmentId to set. * @return This builder for chaining. */ public Builder setEnvironmentId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } environmentId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string environment_id = 1 [json_name = "environmentId"];</code> * @return This builder for chaining. */ public Builder clearEnvironmentId() { environmentId_ = getDefaultInstance().getEnvironmentId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string environment_id = 1 [json_name = "environmentId"];</code> * @param value The bytes for environmentId to set. * @return This builder for chaining. */ public Builder setEnvironmentIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); environmentId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object environmentName_ = ""; /** * <code>string environment_name = 2 [json_name = "environmentName"];</code> * @return The environmentName. */ public java.lang.String getEnvironmentName() { java.lang.Object ref = environmentName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environmentName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string environment_name = 2 [json_name = "environmentName"];</code> * @return The bytes for environmentName. */ public com.google.protobuf.ByteString getEnvironmentNameBytes() { java.lang.Object ref = environmentName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string environment_name = 2 [json_name = "environmentName"];</code> * @param value The environmentName to set. * @return This builder for chaining. */ public Builder setEnvironmentName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } environmentName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string environment_name = 2 [json_name = "environmentName"];</code> * @return This builder for chaining. */ public Builder clearEnvironmentName() { environmentName_ = getDefaultInstance().getEnvironmentName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string environment_name = 2 [json_name = "environmentName"];</code> * @param value The bytes for environmentName to set. * @return This builder for chaining. */ public Builder setEnvironmentNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); environmentName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object projectId_ = ""; /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The bytes for projectId. */ public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return This builder for chaining. */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @param value The bytes for projectId to set. * @return This builder for chaining. */ public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object projectName_ = ""; /** * <code>string project_name = 4 [json_name = "projectName"];</code> * @return The projectName. */ public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string project_name = 4 [json_name = "projectName"];</code> * @return The bytes for projectName. */ public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string project_name = 4 [json_name = "projectName"];</code> * @param value The projectName to set. * @return This builder for chaining. */ public Builder setProjectName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string project_name = 4 [json_name = "projectName"];</code> * @return This builder for chaining. */ public Builder clearProjectName() { projectName_ = getDefaultInstance().getProjectName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string project_name = 4 [json_name = "projectName"];</code> * @param value The bytes for projectName to set. * @return This builder for chaining. */ public Builder setProjectNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> permissions_ = java.util.Collections.emptyList(); private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { permissions_ = new java.util.ArrayList<ai.chalk.protos.chalk.auth.v1.DisplayPermission>(permissions_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayPermission, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder, ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> permissionsBuilder_; /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> getPermissionsList() { if (permissionsBuilder_ == null) { return java.util.Collections.unmodifiableList(permissions_); } else { return permissionsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public int getPermissionsCount() { if (permissionsBuilder_ == null) { return permissions_.size(); } else { return permissionsBuilder_.getCount(); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermission getPermissions(int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public Builder setPermissions( int index, ai.chalk.protos.chalk.auth.v1.DisplayPermission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); } else { permissionsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public Builder setPermissions( int index, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.set(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public Builder addPermissions(ai.chalk.protos.chalk.auth.v1.DisplayPermission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); } else { permissionsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public Builder addPermissions( int index, ai.chalk.protos.chalk.auth.v1.DisplayPermission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(index, value); onChanged(); } else { permissionsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public Builder addPermissions( ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public Builder addPermissions( int index, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public Builder addAllPermissions( java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.DisplayPermission> values) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissions_); onChanged(); } else { permissionsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public Builder clearPermissions() { if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { permissionsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public Builder removePermissions(int index) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.remove(index); onChanged(); } else { permissionsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder getPermissionsBuilder( int index) { return getPermissionsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder getPermissionsOrBuilder( int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> getPermissionsOrBuilderList() { if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(permissions_); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder addPermissionsBuilder() { return getPermissionsFieldBuilder().addBuilder( ai.chalk.protos.chalk.auth.v1.DisplayPermission.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder addPermissionsBuilder( int index) { return getPermissionsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.auth.v1.DisplayPermission.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder> getPermissionsBuilderList() { return getPermissionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayPermission, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder, ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> getPermissionsFieldBuilder() { if (permissionsBuilder_ == null) { permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayPermission, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder, ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder>( permissions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); permissions_ = null; } return permissionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.DisplayEnvironmentPermissions) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.DisplayEnvironmentPermissions) private static final ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions(); } public static ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DisplayEnvironmentPermissions> PARSER = new com.google.protobuf.AbstractParser<DisplayEnvironmentPermissions>() { @java.lang.Override public DisplayEnvironmentPermissions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DisplayEnvironmentPermissions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DisplayEnvironmentPermissions> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayEnvironmentPermissionsOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface DisplayEnvironmentPermissionsOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.DisplayEnvironmentPermissions) com.google.protobuf.MessageOrBuilder { /** * <code>string environment_id = 1 [json_name = "environmentId"];</code> * @return The environmentId. */ java.lang.String getEnvironmentId(); /** * <code>string environment_id = 1 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ com.google.protobuf.ByteString getEnvironmentIdBytes(); /** * <code>string environment_name = 2 [json_name = "environmentName"];</code> * @return The environmentName. */ java.lang.String getEnvironmentName(); /** * <code>string environment_name = 2 [json_name = "environmentName"];</code> * @return The bytes for environmentName. */ com.google.protobuf.ByteString getEnvironmentNameBytes(); /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The projectId. */ java.lang.String getProjectId(); /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The bytes for projectId. */ com.google.protobuf.ByteString getProjectIdBytes(); /** * <code>string project_name = 4 [json_name = "projectName"];</code> * @return The projectName. */ java.lang.String getProjectName(); /** * <code>string project_name = 4 [json_name = "projectName"];</code> * @return The bytes for projectName. */ com.google.protobuf.ByteString getProjectNameBytes(); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> getPermissionsList(); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayPermission getPermissions(int index); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ int getPermissionsCount(); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> getPermissionsOrBuilderList(); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 5 [json_name = "permissions"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder getPermissionsOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayMetadataServiceAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.DisplayMetadataServiceAgent} */ public final class DisplayMetadataServiceAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.DisplayMetadataServiceAgent) DisplayMetadataServiceAgentOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayMetadataServiceAgent.newBuilder() to construct. private DisplayMetadataServiceAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DisplayMetadataServiceAgent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayMetadataServiceAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent other = (ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent 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(ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent 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; } /** * Protobuf type {@code chalk.auth.v1.DisplayMetadataServiceAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.DisplayMetadataServiceAgent) ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent build() { ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent result = new ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.DisplayMetadataServiceAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.DisplayMetadataServiceAgent) private static final ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent(); } public static ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DisplayMetadataServiceAgent> PARSER = new com.google.protobuf.AbstractParser<DisplayMetadataServiceAgent>() { @java.lang.Override public DisplayMetadataServiceAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DisplayMetadataServiceAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DisplayMetadataServiceAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayMetadataServiceAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayMetadataServiceAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface DisplayMetadataServiceAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.DisplayMetadataServiceAgent) com.google.protobuf.MessageOrBuilder { }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayPermission.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.DisplayPermission} */ public final class DisplayPermission extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.DisplayPermission) DisplayPermissionOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayPermission.newBuilder() to construct. private DisplayPermission(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DisplayPermission() { name_ = ""; permission_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayPermission(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayPermission_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayPermission_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayPermission.class, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * <code>string name = 1 [json_name = "name"];</code> * @return The name. */ @java.lang.Override 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; } } /** * <code>string name = 1 [json_name = "name"];</code> * @return The bytes for name. */ @java.lang.Override 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 PERMISSION_FIELD_NUMBER = 2; private int permission_ = 0; /** * <code>.chalk.auth.v1.Permission permission = 2 [json_name = "permission"];</code> * @return The enum numeric value on the wire for permission. */ @java.lang.Override public int getPermissionValue() { return permission_; } /** * <code>.chalk.auth.v1.Permission permission = 2 [json_name = "permission"];</code> * @return The permission. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.Permission getPermission() { ai.chalk.protos.chalk.auth.v1.Permission result = ai.chalk.protos.chalk.auth.v1.Permission.forNumber(permission_); return result == null ? ai.chalk.protos.chalk.auth.v1.Permission.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (permission_ != ai.chalk.protos.chalk.auth.v1.Permission.PERMISSION_UNSPECIFIED.getNumber()) { output.writeEnum(2, permission_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (permission_ != ai.chalk.protos.chalk.auth.v1.Permission.PERMISSION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, permission_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.DisplayPermission)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.DisplayPermission other = (ai.chalk.protos.chalk.auth.v1.DisplayPermission) obj; if (!getName() .equals(other.getName())) return false; if (permission_ != other.permission_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + PERMISSION_FIELD_NUMBER; hash = (53 * hash) + permission_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission 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 ai.chalk.protos.chalk.auth.v1.DisplayPermission parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission 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 ai.chalk.protos.chalk.auth.v1.DisplayPermission parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission 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(ai.chalk.protos.chalk.auth.v1.DisplayPermission 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; } /** * Protobuf type {@code chalk.auth.v1.DisplayPermission} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.DisplayPermission) ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayPermission_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayPermission_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayPermission.class, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.DisplayPermission.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; permission_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayPermission_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayPermission getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.DisplayPermission.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayPermission build() { ai.chalk.protos.chalk.auth.v1.DisplayPermission result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayPermission buildPartial() { ai.chalk.protos.chalk.auth.v1.DisplayPermission result = new ai.chalk.protos.chalk.auth.v1.DisplayPermission(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.DisplayPermission result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.permission_ = permission_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.DisplayPermission) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.DisplayPermission)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.DisplayPermission other) { if (other == ai.chalk.protos.chalk.auth.v1.DisplayPermission.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.permission_ != 0) { setPermissionValue(other.getPermissionValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { permission_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * <code>string name = 1 [json_name = "name"];</code> * @return The name. */ 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; } } /** * <code>string name = 1 [json_name = "name"];</code> * @return The bytes for name. */ 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; } } /** * <code>string name = 1 [json_name = "name"];</code> * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string name = 1 [json_name = "name"];</code> * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string name = 1 [json_name = "name"];</code> * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int permission_ = 0; /** * <code>.chalk.auth.v1.Permission permission = 2 [json_name = "permission"];</code> * @return The enum numeric value on the wire for permission. */ @java.lang.Override public int getPermissionValue() { return permission_; } /** * <code>.chalk.auth.v1.Permission permission = 2 [json_name = "permission"];</code> * @param value The enum numeric value on the wire for permission to set. * @return This builder for chaining. */ public Builder setPermissionValue(int value) { permission_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.auth.v1.Permission permission = 2 [json_name = "permission"];</code> * @return The permission. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.Permission getPermission() { ai.chalk.protos.chalk.auth.v1.Permission result = ai.chalk.protos.chalk.auth.v1.Permission.forNumber(permission_); return result == null ? ai.chalk.protos.chalk.auth.v1.Permission.UNRECOGNIZED : result; } /** * <code>.chalk.auth.v1.Permission permission = 2 [json_name = "permission"];</code> * @param value The permission to set. * @return This builder for chaining. */ public Builder setPermission(ai.chalk.protos.chalk.auth.v1.Permission value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; permission_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.auth.v1.Permission permission = 2 [json_name = "permission"];</code> * @return This builder for chaining. */ public Builder clearPermission() { bitField0_ = (bitField0_ & ~0x00000002); permission_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.DisplayPermission) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.DisplayPermission) private static final ai.chalk.protos.chalk.auth.v1.DisplayPermission DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.DisplayPermission(); } public static ai.chalk.protos.chalk.auth.v1.DisplayPermission getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DisplayPermission> PARSER = new com.google.protobuf.AbstractParser<DisplayPermission>() { @java.lang.Override public DisplayPermission parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DisplayPermission> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DisplayPermission> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayPermission getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayPermissionOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface DisplayPermissionOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.DisplayPermission) com.google.protobuf.MessageOrBuilder { /** * <code>string name = 1 [json_name = "name"];</code> * @return The name. */ java.lang.String getName(); /** * <code>string name = 1 [json_name = "name"];</code> * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * <code>.chalk.auth.v1.Permission permission = 2 [json_name = "permission"];</code> * @return The enum numeric value on the wire for permission. */ int getPermissionValue(); /** * <code>.chalk.auth.v1.Permission permission = 2 [json_name = "permission"];</code> * @return The permission. */ ai.chalk.protos.chalk.auth.v1.Permission getPermission(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayServiceTokenAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.DisplayServiceTokenAgent} */ public final class DisplayServiceTokenAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.DisplayServiceTokenAgent) DisplayServiceTokenAgentOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayServiceTokenAgent.newBuilder() to construct. private DisplayServiceTokenAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DisplayServiceTokenAgent() { id_ = ""; clientId_ = ""; teamId_ = ""; projectId_ = ""; environmentId_ = ""; permissions_ = java.util.Collections.emptyList(); name_ = ""; teamName_ = ""; projectName_ = ""; environmentName_ = ""; customerClaims_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayServiceTokenAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayServiceTokenAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayServiceTokenAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ @java.lang.Override 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ @java.lang.Override 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; } } public static final int CLIENT_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The clientId. */ @java.lang.Override public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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(); clientId_ = s; return s; } } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The bytes for clientId. */ @java.lang.Override public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEAM_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object teamId_ = ""; /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ @java.lang.Override public java.lang.String getTeamId() { java.lang.Object ref = teamId_; 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(); teamId_ = s; return s; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ @java.lang.Override public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** * <code>string project_id = 4 [json_name = "projectId"];</code> * @return The projectId. */ @java.lang.Override public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; } } /** * <code>string project_id = 4 [json_name = "projectId"];</code> * @return The bytes for projectId. */ @java.lang.Override public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 5 [json_name = "environmentId"];</code> * @return The environmentId. */ @java.lang.Override public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; 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(); environmentId_ = s; return s; } } /** * <code>string environment_id = 5 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ @java.lang.Override public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERMISSIONS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> permissions_; /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> getPermissionsList() { return permissions_; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> getPermissionsOrBuilderList() { return permissions_; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ @java.lang.Override public int getPermissionsCount() { return permissions_.size(); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayPermission getPermissions(int index) { return permissions_.get(index); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder getPermissionsOrBuilder( int index) { return permissions_.get(index); } public static final int NAME_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * <code>string name = 7 [json_name = "name"];</code> * @return The name. */ @java.lang.Override 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; } } /** * <code>string name = 7 [json_name = "name"];</code> * @return The bytes for name. */ @java.lang.Override 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 TEAM_NAME_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object teamName_ = ""; /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The teamName. */ @java.lang.Override public java.lang.String getTeamName() { java.lang.Object ref = teamName_; 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(); teamName_ = s; return s; } } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The bytes for teamName. */ @java.lang.Override public com.google.protobuf.ByteString getTeamNameBytes() { java.lang.Object ref = teamName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_NAME_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object projectName_ = ""; /** * <code>string project_name = 9 [json_name = "projectName"];</code> * @return The projectName. */ @java.lang.Override public java.lang.String getProjectName() { java.lang.Object ref = projectName_; 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(); projectName_ = s; return s; } } /** * <code>string project_name = 9 [json_name = "projectName"];</code> * @return The bytes for projectName. */ @java.lang.Override public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_NAME_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object environmentName_ = ""; /** * <code>string environment_name = 10 [json_name = "environmentName"];</code> * @return The environmentName. */ @java.lang.Override public java.lang.String getEnvironmentName() { java.lang.Object ref = environmentName_; 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(); environmentName_ = s; return s; } } /** * <code>string environment_name = 10 [json_name = "environmentName"];</code> * @return The bytes for environmentName. */ @java.lang.Override public com.google.protobuf.ByteString getEnvironmentNameBytes() { java.lang.Object ref = environmentName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CUSTOMER_CLAIMS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> customerClaims_; /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> getCustomerClaimsList() { return customerClaims_; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> getCustomerClaimsOrBuilderList() { return customerClaims_; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ @java.lang.Override public int getCustomerClaimsCount() { return customerClaims_.size(); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim getCustomerClaims(int index) { return customerClaims_.get(index); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder getCustomerClaimsOrBuilder( int index) { return customerClaims_.get(index); } public static final int FEATURE_PERMISSIONS_FIELD_NUMBER = 12; private ai.chalk.protos.chalk.auth.v1.FeaturePermissions featurePermissions_; /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> * @return Whether the featurePermissions field is set. */ @java.lang.Override public boolean hasFeaturePermissions() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> * @return The featurePermissions. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissions getFeaturePermissions() { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder getFeaturePermissionsOrBuilder() { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } public static final int CREATED_AT_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createdAt_; /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, environmentId_); } for (int i = 0; i < permissions_.size(); i++) { output.writeMessage(6, permissions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, teamName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, projectName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, environmentName_); } for (int i = 0; i < customerClaims_.size(); i++) { output.writeMessage(11, customerClaims_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(12, getFeaturePermissions()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(13, getCreatedAt()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, environmentId_); } for (int i = 0; i < permissions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, permissions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, teamName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, projectName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, environmentName_); } for (int i = 0; i < customerClaims_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, customerClaims_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getFeaturePermissions()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getCreatedAt()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent other = (ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) obj; if (!getId() .equals(other.getId())) return false; if (!getClientId() .equals(other.getClientId())) return false; if (!getTeamId() .equals(other.getTeamId())) return false; if (!getProjectId() .equals(other.getProjectId())) return false; if (!getEnvironmentId() .equals(other.getEnvironmentId())) return false; if (!getPermissionsList() .equals(other.getPermissionsList())) return false; if (!getName() .equals(other.getName())) return false; if (!getTeamName() .equals(other.getTeamName())) return false; if (!getProjectName() .equals(other.getProjectName())) return false; if (!getEnvironmentName() .equals(other.getEnvironmentName())) return false; if (!getCustomerClaimsList() .equals(other.getCustomerClaimsList())) return false; if (hasFeaturePermissions() != other.hasFeaturePermissions()) return false; if (hasFeaturePermissions()) { if (!getFeaturePermissions() .equals(other.getFeaturePermissions())) return false; } if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; hash = (53 * hash) + getTeamId().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentId().hashCode(); if (getPermissionsCount() > 0) { hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getPermissionsList().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TEAM_NAME_FIELD_NUMBER; hash = (53 * hash) + getTeamName().hashCode(); hash = (37 * hash) + PROJECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getProjectName().hashCode(); hash = (37 * hash) + ENVIRONMENT_NAME_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentName().hashCode(); if (getCustomerClaimsCount() > 0) { hash = (37 * hash) + CUSTOMER_CLAIMS_FIELD_NUMBER; hash = (53 * hash) + getCustomerClaimsList().hashCode(); } if (hasFeaturePermissions()) { hash = (37 * hash) + FEATURE_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getFeaturePermissions().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent 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(ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent 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; } /** * Protobuf type {@code chalk.auth.v1.DisplayServiceTokenAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.DisplayServiceTokenAgent) ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayServiceTokenAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayServiceTokenAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPermissionsFieldBuilder(); getCustomerClaimsFieldBuilder(); getFeaturePermissionsFieldBuilder(); getCreatedAtFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; clientId_ = ""; teamId_ = ""; projectId_ = ""; environmentId_ = ""; if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); } else { permissions_ = null; permissionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); name_ = ""; teamName_ = ""; projectName_ = ""; environmentName_ = ""; if (customerClaimsBuilder_ == null) { customerClaims_ = java.util.Collections.emptyList(); } else { customerClaims_ = null; customerClaimsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); featurePermissions_ = null; if (featurePermissionsBuilder_ != null) { featurePermissionsBuilder_.dispose(); featurePermissionsBuilder_ = null; } createdAt_ = null; if (createdAtBuilder_ != null) { createdAtBuilder_.dispose(); createdAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayServiceTokenAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent build() { ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent result = new ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent result) { if (permissionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); bitField0_ = (bitField0_ & ~0x00000020); } result.permissions_ = permissions_; } else { result.permissions_ = permissionsBuilder_.build(); } if (customerClaimsBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { customerClaims_ = java.util.Collections.unmodifiableList(customerClaims_); bitField0_ = (bitField0_ & ~0x00000400); } result.customerClaims_ = customerClaims_; } else { result.customerClaims_ = customerClaimsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.clientId_ = clientId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.teamId_ = teamId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.environmentId_ = environmentId_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.teamName_ = teamName_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.projectName_ = projectName_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.environmentName_ = environmentName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000800) != 0)) { result.featurePermissions_ = featurePermissionsBuilder_ == null ? featurePermissions_ : featurePermissionsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00001000) != 0)) { result.createdAt_ = createdAtBuilder_ == null ? createdAt_ : createdAtBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getTeamId().isEmpty()) { teamId_ = other.teamId_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getEnvironmentId().isEmpty()) { environmentId_ = other.environmentId_; bitField0_ |= 0x00000010; onChanged(); } if (permissionsBuilder_ == null) { if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } } else { if (!other.permissions_.isEmpty()) { if (permissionsBuilder_.isEmpty()) { permissionsBuilder_.dispose(); permissionsBuilder_ = null; permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000020); permissionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPermissionsFieldBuilder() : null; } else { permissionsBuilder_.addAllMessages(other.permissions_); } } } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getTeamName().isEmpty()) { teamName_ = other.teamName_; bitField0_ |= 0x00000080; onChanged(); } if (!other.getProjectName().isEmpty()) { projectName_ = other.projectName_; bitField0_ |= 0x00000100; onChanged(); } if (!other.getEnvironmentName().isEmpty()) { environmentName_ = other.environmentName_; bitField0_ |= 0x00000200; onChanged(); } if (customerClaimsBuilder_ == null) { if (!other.customerClaims_.isEmpty()) { if (customerClaims_.isEmpty()) { customerClaims_ = other.customerClaims_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureCustomerClaimsIsMutable(); customerClaims_.addAll(other.customerClaims_); } onChanged(); } } else { if (!other.customerClaims_.isEmpty()) { if (customerClaimsBuilder_.isEmpty()) { customerClaimsBuilder_.dispose(); customerClaimsBuilder_ = null; customerClaims_ = other.customerClaims_; bitField0_ = (bitField0_ & ~0x00000400); customerClaimsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomerClaimsFieldBuilder() : null; } else { customerClaimsBuilder_.addAllMessages(other.customerClaims_); } } } if (other.hasFeaturePermissions()) { mergeFeaturePermissions(other.getFeaturePermissions()); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { clientId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { teamId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { projectId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { environmentId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { ai.chalk.protos.chalk.auth.v1.DisplayPermission m = input.readMessage( ai.chalk.protos.chalk.auth.v1.DisplayPermission.parser(), extensionRegistry); if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(m); } else { permissionsBuilder_.addMessage(m); } break; } // case 50 case 58: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { teamName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { projectName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 case 82: { environmentName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 82 case 90: { ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim m = input.readMessage( ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.parser(), extensionRegistry); if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(m); } else { customerClaimsBuilder_.addMessage(m); } break; } // case 90 case 98: { input.readMessage( getFeaturePermissionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 98 case 106: { input.readMessage( getCreatedAtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string id = 1 [json_name = "id"];</code> * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string id = 1 [json_name = "id"];</code> * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object clientId_ = ""; /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The clientId. */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The bytes for clientId. */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @param value The clientId to set. * @return This builder for chaining. */ public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return This builder for chaining. */ public Builder clearClientId() { clientId_ = getDefaultInstance().getClientId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @param value The bytes for clientId to set. * @return This builder for chaining. */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object teamId_ = ""; /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ public java.lang.String getTeamId() { java.lang.Object ref = teamId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @param value The teamId to set. * @return This builder for chaining. */ public Builder setTeamId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return This builder for chaining. */ public Builder clearTeamId() { teamId_ = getDefaultInstance().getTeamId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @param value The bytes for teamId to set. * @return This builder for chaining. */ public Builder setTeamIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object projectId_ = ""; /** * <code>string project_id = 4 [json_name = "projectId"];</code> * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string project_id = 4 [json_name = "projectId"];</code> * @return The bytes for projectId. */ public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string project_id = 4 [json_name = "projectId"];</code> * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string project_id = 4 [json_name = "projectId"];</code> * @return This builder for chaining. */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string project_id = 4 [json_name = "projectId"];</code> * @param value The bytes for projectId to set. * @return This builder for chaining. */ public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 5 [json_name = "environmentId"];</code> * @return The environmentId. */ public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environmentId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string environment_id = 5 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string environment_id = 5 [json_name = "environmentId"];</code> * @param value The environmentId to set. * @return This builder for chaining. */ public Builder setEnvironmentId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } environmentId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>string environment_id = 5 [json_name = "environmentId"];</code> * @return This builder for chaining. */ public Builder clearEnvironmentId() { environmentId_ = getDefaultInstance().getEnvironmentId(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * <code>string environment_id = 5 [json_name = "environmentId"];</code> * @param value The bytes for environmentId to set. * @return This builder for chaining. */ public Builder setEnvironmentIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); environmentId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> permissions_ = java.util.Collections.emptyList(); private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { permissions_ = new java.util.ArrayList<ai.chalk.protos.chalk.auth.v1.DisplayPermission>(permissions_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayPermission, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder, ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> permissionsBuilder_; /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> getPermissionsList() { if (permissionsBuilder_ == null) { return java.util.Collections.unmodifiableList(permissions_); } else { return permissionsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public int getPermissionsCount() { if (permissionsBuilder_ == null) { return permissions_.size(); } else { return permissionsBuilder_.getCount(); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermission getPermissions(int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public Builder setPermissions( int index, ai.chalk.protos.chalk.auth.v1.DisplayPermission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); } else { permissionsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public Builder setPermissions( int index, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.set(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public Builder addPermissions(ai.chalk.protos.chalk.auth.v1.DisplayPermission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); } else { permissionsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public Builder addPermissions( int index, ai.chalk.protos.chalk.auth.v1.DisplayPermission value) { if (permissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(index, value); onChanged(); } else { permissionsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public Builder addPermissions( ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public Builder addPermissions( int index, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder builderForValue) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.add(index, builderForValue.build()); onChanged(); } else { permissionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public Builder addAllPermissions( java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.DisplayPermission> values) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissions_); onChanged(); } else { permissionsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public Builder clearPermissions() { if (permissionsBuilder_ == null) { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { permissionsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public Builder removePermissions(int index) { if (permissionsBuilder_ == null) { ensurePermissionsIsMutable(); permissions_.remove(index); onChanged(); } else { permissionsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder getPermissionsBuilder( int index) { return getPermissionsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder getPermissionsOrBuilder( int index) { if (permissionsBuilder_ == null) { return permissions_.get(index); } else { return permissionsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> getPermissionsOrBuilderList() { if (permissionsBuilder_ != null) { return permissionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(permissions_); } } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder addPermissionsBuilder() { return getPermissionsFieldBuilder().addBuilder( ai.chalk.protos.chalk.auth.v1.DisplayPermission.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder addPermissionsBuilder( int index) { return getPermissionsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.auth.v1.DisplayPermission.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder> getPermissionsBuilderList() { return getPermissionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayPermission, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder, ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> getPermissionsFieldBuilder() { if (permissionsBuilder_ == null) { permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayPermission, ai.chalk.protos.chalk.auth.v1.DisplayPermission.Builder, ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder>( permissions_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); permissions_ = null; } return permissionsBuilder_; } private java.lang.Object name_ = ""; /** * <code>string name = 7 [json_name = "name"];</code> * @return The name. */ 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; } } /** * <code>string name = 7 [json_name = "name"];</code> * @return The bytes for name. */ 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; } } /** * <code>string name = 7 [json_name = "name"];</code> * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * <code>string name = 7 [json_name = "name"];</code> * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * <code>string name = 7 [json_name = "name"];</code> * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object teamName_ = ""; /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The teamName. */ public java.lang.String getTeamName() { java.lang.Object ref = teamName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The bytes for teamName. */ public com.google.protobuf.ByteString getTeamNameBytes() { java.lang.Object ref = teamName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @param value The teamName to set. * @return This builder for chaining. */ public Builder setTeamName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return This builder for chaining. */ public Builder clearTeamName() { teamName_ = getDefaultInstance().getTeamName(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @param value The bytes for teamName to set. * @return This builder for chaining. */ public Builder setTeamNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object projectName_ = ""; /** * <code>string project_name = 9 [json_name = "projectName"];</code> * @return The projectName. */ public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string project_name = 9 [json_name = "projectName"];</code> * @return The bytes for projectName. */ public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string project_name = 9 [json_name = "projectName"];</code> * @param value The projectName to set. * @return This builder for chaining. */ public Builder setProjectName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectName_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * <code>string project_name = 9 [json_name = "projectName"];</code> * @return This builder for chaining. */ public Builder clearProjectName() { projectName_ = getDefaultInstance().getProjectName(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * <code>string project_name = 9 [json_name = "projectName"];</code> * @param value The bytes for projectName to set. * @return This builder for chaining. */ public Builder setProjectNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectName_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private java.lang.Object environmentName_ = ""; /** * <code>string environment_name = 10 [json_name = "environmentName"];</code> * @return The environmentName. */ public java.lang.String getEnvironmentName() { java.lang.Object ref = environmentName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environmentName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string environment_name = 10 [json_name = "environmentName"];</code> * @return The bytes for environmentName. */ public com.google.protobuf.ByteString getEnvironmentNameBytes() { java.lang.Object ref = environmentName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string environment_name = 10 [json_name = "environmentName"];</code> * @param value The environmentName to set. * @return This builder for chaining. */ public Builder setEnvironmentName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } environmentName_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * <code>string environment_name = 10 [json_name = "environmentName"];</code> * @return This builder for chaining. */ public Builder clearEnvironmentName() { environmentName_ = getDefaultInstance().getEnvironmentName(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * <code>string environment_name = 10 [json_name = "environmentName"];</code> * @param value The bytes for environmentName to set. * @return This builder for chaining. */ public Builder setEnvironmentNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); environmentName_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> customerClaims_ = java.util.Collections.emptyList(); private void ensureCustomerClaimsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { customerClaims_ = new java.util.ArrayList<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim>(customerClaims_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> customerClaimsBuilder_; /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> getCustomerClaimsList() { if (customerClaimsBuilder_ == null) { return java.util.Collections.unmodifiableList(customerClaims_); } else { return customerClaimsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public int getCustomerClaimsCount() { if (customerClaimsBuilder_ == null) { return customerClaims_.size(); } else { return customerClaimsBuilder_.getCount(); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim getCustomerClaims(int index) { if (customerClaimsBuilder_ == null) { return customerClaims_.get(index); } else { return customerClaimsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public Builder setCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.set(index, value); onChanged(); } else { customerClaimsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public Builder setCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.set(index, builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims(ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.add(value); onChanged(); } else { customerClaimsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.add(index, value); onChanged(); } else { customerClaimsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(index, builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public Builder addAllCustomerClaims( java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> values) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, customerClaims_); onChanged(); } else { customerClaimsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public Builder clearCustomerClaims() { if (customerClaimsBuilder_ == null) { customerClaims_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { customerClaimsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public Builder removeCustomerClaims(int index) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.remove(index); onChanged(); } else { customerClaimsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder getCustomerClaimsBuilder( int index) { return getCustomerClaimsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder getCustomerClaimsOrBuilder( int index) { if (customerClaimsBuilder_ == null) { return customerClaims_.get(index); } else { return customerClaimsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> getCustomerClaimsOrBuilderList() { if (customerClaimsBuilder_ != null) { return customerClaimsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(customerClaims_); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder addCustomerClaimsBuilder() { return getCustomerClaimsFieldBuilder().addBuilder( ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder addCustomerClaimsBuilder( int index) { return getCustomerClaimsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder> getCustomerClaimsBuilderList() { return getCustomerClaimsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> getCustomerClaimsFieldBuilder() { if (customerClaimsBuilder_ == null) { customerClaimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder>( customerClaims_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); customerClaims_ = null; } return customerClaimsBuilder_; } private ai.chalk.protos.chalk.auth.v1.FeaturePermissions featurePermissions_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.FeaturePermissions, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder, ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder> featurePermissionsBuilder_; /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> * @return Whether the featurePermissions field is set. */ public boolean hasFeaturePermissions() { return ((bitField0_ & 0x00000800) != 0); } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> * @return The featurePermissions. */ public ai.chalk.protos.chalk.auth.v1.FeaturePermissions getFeaturePermissions() { if (featurePermissionsBuilder_ == null) { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } else { return featurePermissionsBuilder_.getMessage(); } } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> */ public Builder setFeaturePermissions(ai.chalk.protos.chalk.auth.v1.FeaturePermissions value) { if (featurePermissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } featurePermissions_ = value; } else { featurePermissionsBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> */ public Builder setFeaturePermissions( ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder builderForValue) { if (featurePermissionsBuilder_ == null) { featurePermissions_ = builderForValue.build(); } else { featurePermissionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> */ public Builder mergeFeaturePermissions(ai.chalk.protos.chalk.auth.v1.FeaturePermissions value) { if (featurePermissionsBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && featurePermissions_ != null && featurePermissions_ != ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance()) { getFeaturePermissionsBuilder().mergeFrom(value); } else { featurePermissions_ = value; } } else { featurePermissionsBuilder_.mergeFrom(value); } if (featurePermissions_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> */ public Builder clearFeaturePermissions() { bitField0_ = (bitField0_ & ~0x00000800); featurePermissions_ = null; if (featurePermissionsBuilder_ != null) { featurePermissionsBuilder_.dispose(); featurePermissionsBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder getFeaturePermissionsBuilder() { bitField0_ |= 0x00000800; onChanged(); return getFeaturePermissionsFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder getFeaturePermissionsOrBuilder() { if (featurePermissionsBuilder_ != null) { return featurePermissionsBuilder_.getMessageOrBuilder(); } else { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.FeaturePermissions, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder, ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder> getFeaturePermissionsFieldBuilder() { if (featurePermissionsBuilder_ == null) { featurePermissionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.FeaturePermissions, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder, ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder>( getFeaturePermissions(), getParentForChildren(), isClean()); featurePermissions_ = null; } return featurePermissionsBuilder_; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return ((bitField0_ & 0x00001000) != 0); } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; } else { createdAtBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && createdAt_ != null && createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreatedAtBuilder().mergeFrom(value); } else { createdAt_ = value; } } else { createdAtBuilder_.mergeFrom(value); } if (createdAt_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> */ public Builder clearCreatedAt() { bitField0_ = (bitField0_ & ~0x00001000); createdAt_ = null; if (createdAtBuilder_ != null) { createdAtBuilder_.dispose(); createdAtBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { bitField0_ |= 0x00001000; onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.DisplayServiceTokenAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.DisplayServiceTokenAgent) private static final ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent(); } public static ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DisplayServiceTokenAgent> PARSER = new com.google.protobuf.AbstractParser<DisplayServiceTokenAgent>() { @java.lang.Override public DisplayServiceTokenAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DisplayServiceTokenAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DisplayServiceTokenAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayServiceTokenAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayServiceTokenAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface DisplayServiceTokenAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.DisplayServiceTokenAgent) com.google.protobuf.MessageOrBuilder { /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ java.lang.String getId(); /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The clientId. */ java.lang.String getClientId(); /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The bytes for clientId. */ com.google.protobuf.ByteString getClientIdBytes(); /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ java.lang.String getTeamId(); /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ com.google.protobuf.ByteString getTeamIdBytes(); /** * <code>string project_id = 4 [json_name = "projectId"];</code> * @return The projectId. */ java.lang.String getProjectId(); /** * <code>string project_id = 4 [json_name = "projectId"];</code> * @return The bytes for projectId. */ com.google.protobuf.ByteString getProjectIdBytes(); /** * <code>string environment_id = 5 [json_name = "environmentId"];</code> * @return The environmentId. */ java.lang.String getEnvironmentId(); /** * <code>string environment_id = 5 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ com.google.protobuf.ByteString getEnvironmentIdBytes(); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayPermission> getPermissionsList(); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayPermission getPermissions(int index); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ int getPermissionsCount(); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder> getPermissionsOrBuilderList(); /** * <code>repeated .chalk.auth.v1.DisplayPermission permissions = 6 [json_name = "permissions"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayPermissionOrBuilder getPermissionsOrBuilder( int index); /** * <code>string name = 7 [json_name = "name"];</code> * @return The name. */ java.lang.String getName(); /** * <code>string name = 7 [json_name = "name"];</code> * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The teamName. */ java.lang.String getTeamName(); /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The bytes for teamName. */ com.google.protobuf.ByteString getTeamNameBytes(); /** * <code>string project_name = 9 [json_name = "projectName"];</code> * @return The projectName. */ java.lang.String getProjectName(); /** * <code>string project_name = 9 [json_name = "projectName"];</code> * @return The bytes for projectName. */ com.google.protobuf.ByteString getProjectNameBytes(); /** * <code>string environment_name = 10 [json_name = "environmentName"];</code> * @return The environmentName. */ java.lang.String getEnvironmentName(); /** * <code>string environment_name = 10 [json_name = "environmentName"];</code> * @return The bytes for environmentName. */ com.google.protobuf.ByteString getEnvironmentNameBytes(); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> getCustomerClaimsList(); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim getCustomerClaims(int index); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ int getCustomerClaimsCount(); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> getCustomerClaimsOrBuilderList(); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 11 [json_name = "customerClaims"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder getCustomerClaimsOrBuilder( int index); /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> * @return Whether the featurePermissions field is set. */ boolean hasFeaturePermissions(); /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> * @return The featurePermissions. */ ai.chalk.protos.chalk.auth.v1.FeaturePermissions getFeaturePermissions(); /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 12 [json_name = "featurePermissions"];</code> */ ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder getFeaturePermissionsOrBuilder(); /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** * <code>.google.protobuf.Timestamp created_at = 13 [json_name = "createdAt"];</code> */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayTenantAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.DisplayTenantAgent} */ public final class DisplayTenantAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.DisplayTenantAgent) DisplayTenantAgentOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayTenantAgent.newBuilder() to construct. private DisplayTenantAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DisplayTenantAgent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayTenantAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayTenantAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayTenantAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent other = (ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent 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(ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent 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; } /** * Protobuf type {@code chalk.auth.v1.DisplayTenantAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.DisplayTenantAgent) ai.chalk.protos.chalk.auth.v1.DisplayTenantAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayTenantAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayTenantAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayTenantAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent build() { ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent result = new ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.DisplayTenantAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.DisplayTenantAgent) private static final ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent(); } public static ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DisplayTenantAgent> PARSER = new com.google.protobuf.AbstractParser<DisplayTenantAgent>() { @java.lang.Override public DisplayTenantAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DisplayTenantAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DisplayTenantAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayTenantAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayTenantAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface DisplayTenantAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.DisplayTenantAgent) com.google.protobuf.MessageOrBuilder { }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayUserAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.DisplayUserAgent} */ public final class DisplayUserAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.DisplayUserAgent) DisplayUserAgentOrBuilder { private static final long serialVersionUID = 0L; // Use DisplayUserAgent.newBuilder() to construct. private DisplayUserAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DisplayUserAgent() { clientId_ = ""; userId_ = ""; teamId_ = ""; permissionsByEnvironment_ = java.util.Collections.emptyList(); name_ = ""; email_ = ""; teamName_ = ""; customerClaims_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisplayUserAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayUserAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayUserAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.Builder.class); } public static final int CLIENT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.DisplayUserAgent.client_id is deprecated. * See chalk/auth/v1/displayagent.proto;l=24 * @return The clientId. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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(); clientId_ = s; return s; } } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.DisplayUserAgent.client_id is deprecated. * See chalk/auth/v1/displayagent.proto;l=24 * @return The bytes for clientId. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object userId_ = ""; /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The userId. */ @java.lang.Override 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; } } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The bytes for userId. */ @java.lang.Override 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 TEAM_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object teamId_ = ""; /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ @java.lang.Override public java.lang.String getTeamId() { java.lang.Object ref = teamId_; 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(); teamId_ = s; return s; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ @java.lang.Override public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERMISSIONS_BY_ENVIRONMENT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions> permissionsByEnvironment_; /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions> getPermissionsByEnvironmentList() { return permissionsByEnvironment_; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder> getPermissionsByEnvironmentOrBuilderList() { return permissionsByEnvironment_; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public int getPermissionsByEnvironmentCount() { return permissionsByEnvironment_.size(); } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions getPermissionsByEnvironment(int index) { return permissionsByEnvironment_.get(index); } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder getPermissionsByEnvironmentOrBuilder( int index) { return permissionsByEnvironment_.get(index); } public static final int IMPERSONATED_FIELD_NUMBER = 5; private boolean impersonated_ = false; /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ @java.lang.Override public boolean getImpersonated() { return impersonated_; } public static final int NAME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * <code>string name = 6 [json_name = "name"];</code> * @return The name. */ @java.lang.Override 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; } } /** * <code>string name = 6 [json_name = "name"];</code> * @return The bytes for name. */ @java.lang.Override 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 EMAIL_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** * <code>string email = 7 [json_name = "email"];</code> * @return The email. */ @java.lang.Override public java.lang.String getEmail() { java.lang.Object ref = email_; 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(); email_ = s; return s; } } /** * <code>string email = 7 [json_name = "email"];</code> * @return The bytes for email. */ @java.lang.Override public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEAM_NAME_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object teamName_ = ""; /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The teamName. */ @java.lang.Override public java.lang.String getTeamName() { java.lang.Object ref = teamName_; 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(); teamName_ = s; return s; } } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The bytes for teamName. */ @java.lang.Override public com.google.protobuf.ByteString getTeamNameBytes() { java.lang.Object ref = teamName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CUSTOMER_CLAIMS_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> customerClaims_; /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> getCustomerClaimsList() { return customerClaims_; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> getCustomerClaimsOrBuilderList() { return customerClaims_; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ @java.lang.Override public int getCustomerClaimsCount() { return customerClaims_.size(); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim getCustomerClaims(int index) { return customerClaims_.get(index); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder getCustomerClaimsOrBuilder( int index) { return customerClaims_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, teamId_); } for (int i = 0; i < permissionsByEnvironment_.size(); i++) { output.writeMessage(4, permissionsByEnvironment_.get(i)); } if (impersonated_ != false) { output.writeBool(5, impersonated_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, email_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, teamName_); } for (int i = 0; i < customerClaims_.size(); i++) { output.writeMessage(9, customerClaims_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, teamId_); } for (int i = 0; i < permissionsByEnvironment_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, permissionsByEnvironment_.get(i)); } if (impersonated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, impersonated_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, email_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, teamName_); } for (int i = 0; i < customerClaims_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, customerClaims_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.DisplayUserAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.DisplayUserAgent other = (ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) obj; if (!getClientId() .equals(other.getClientId())) return false; if (!getUserId() .equals(other.getUserId())) return false; if (!getTeamId() .equals(other.getTeamId())) return false; if (!getPermissionsByEnvironmentList() .equals(other.getPermissionsByEnvironmentList())) return false; if (getImpersonated() != other.getImpersonated()) return false; if (!getName() .equals(other.getName())) return false; if (!getEmail() .equals(other.getEmail())) return false; if (!getTeamName() .equals(other.getTeamName())) return false; if (!getCustomerClaimsList() .equals(other.getCustomerClaimsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; hash = (53 * hash) + getTeamId().hashCode(); if (getPermissionsByEnvironmentCount() > 0) { hash = (37 * hash) + PERMISSIONS_BY_ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + getPermissionsByEnvironmentList().hashCode(); } hash = (37 * hash) + IMPERSONATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getImpersonated()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + TEAM_NAME_FIELD_NUMBER; hash = (53 * hash) + getTeamName().hashCode(); if (getCustomerClaimsCount() > 0) { hash = (37 * hash) + CUSTOMER_CLAIMS_FIELD_NUMBER; hash = (53 * hash) + getCustomerClaimsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayUserAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent 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 ai.chalk.protos.chalk.auth.v1.DisplayUserAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent 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(ai.chalk.protos.chalk.auth.v1.DisplayUserAgent 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; } /** * Protobuf type {@code chalk.auth.v1.DisplayUserAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.DisplayUserAgent) ai.chalk.protos.chalk.auth.v1.DisplayUserAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayUserAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayUserAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.class, ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; clientId_ = ""; userId_ = ""; teamId_ = ""; if (permissionsByEnvironmentBuilder_ == null) { permissionsByEnvironment_ = java.util.Collections.emptyList(); } else { permissionsByEnvironment_ = null; permissionsByEnvironmentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); impersonated_ = false; name_ = ""; email_ = ""; teamName_ = ""; if (customerClaimsBuilder_ == null) { customerClaims_ = java.util.Collections.emptyList(); } else { customerClaims_ = null; customerClaimsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.DisplayagentProto.internal_static_chalk_auth_v1_DisplayUserAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayUserAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayUserAgent build() { ai.chalk.protos.chalk.auth.v1.DisplayUserAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayUserAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.DisplayUserAgent result = new ai.chalk.protos.chalk.auth.v1.DisplayUserAgent(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.auth.v1.DisplayUserAgent result) { if (permissionsByEnvironmentBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { permissionsByEnvironment_ = java.util.Collections.unmodifiableList(permissionsByEnvironment_); bitField0_ = (bitField0_ & ~0x00000008); } result.permissionsByEnvironment_ = permissionsByEnvironment_; } else { result.permissionsByEnvironment_ = permissionsByEnvironmentBuilder_.build(); } if (customerClaimsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { customerClaims_ = java.util.Collections.unmodifiableList(customerClaims_); bitField0_ = (bitField0_ & ~0x00000100); } result.customerClaims_ = customerClaims_; } else { result.customerClaims_ = customerClaimsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.DisplayUserAgent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.clientId_ = clientId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.userId_ = userId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.teamId_ = teamId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.impersonated_ = impersonated_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.email_ = email_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.teamName_ = teamName_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.DisplayUserAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.DisplayUserAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.DisplayUserAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.DisplayUserAgent.getDefaultInstance()) return this; if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getTeamId().isEmpty()) { teamId_ = other.teamId_; bitField0_ |= 0x00000004; onChanged(); } if (permissionsByEnvironmentBuilder_ == null) { if (!other.permissionsByEnvironment_.isEmpty()) { if (permissionsByEnvironment_.isEmpty()) { permissionsByEnvironment_ = other.permissionsByEnvironment_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePermissionsByEnvironmentIsMutable(); permissionsByEnvironment_.addAll(other.permissionsByEnvironment_); } onChanged(); } } else { if (!other.permissionsByEnvironment_.isEmpty()) { if (permissionsByEnvironmentBuilder_.isEmpty()) { permissionsByEnvironmentBuilder_.dispose(); permissionsByEnvironmentBuilder_ = null; permissionsByEnvironment_ = other.permissionsByEnvironment_; bitField0_ = (bitField0_ & ~0x00000008); permissionsByEnvironmentBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPermissionsByEnvironmentFieldBuilder() : null; } else { permissionsByEnvironmentBuilder_.addAllMessages(other.permissionsByEnvironment_); } } } if (other.getImpersonated() != false) { setImpersonated(other.getImpersonated()); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getEmail().isEmpty()) { email_ = other.email_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getTeamName().isEmpty()) { teamName_ = other.teamName_; bitField0_ |= 0x00000080; onChanged(); } if (customerClaimsBuilder_ == null) { if (!other.customerClaims_.isEmpty()) { if (customerClaims_.isEmpty()) { customerClaims_ = other.customerClaims_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureCustomerClaimsIsMutable(); customerClaims_.addAll(other.customerClaims_); } onChanged(); } } else { if (!other.customerClaims_.isEmpty()) { if (customerClaimsBuilder_.isEmpty()) { customerClaimsBuilder_.dispose(); customerClaimsBuilder_ = null; customerClaims_ = other.customerClaims_; bitField0_ = (bitField0_ & ~0x00000100); customerClaimsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomerClaimsFieldBuilder() : null; } else { customerClaimsBuilder_.addAllMessages(other.customerClaims_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { clientId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { userId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { teamId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions m = input.readMessage( ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.parser(), extensionRegistry); if (permissionsByEnvironmentBuilder_ == null) { ensurePermissionsByEnvironmentIsMutable(); permissionsByEnvironment_.add(m); } else { permissionsByEnvironmentBuilder_.addMessage(m); } break; } // case 34 case 40: { impersonated_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { email_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { teamName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim m = input.readMessage( ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.parser(), extensionRegistry); if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(m); } else { customerClaimsBuilder_.addMessage(m); } break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object clientId_ = ""; /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.DisplayUserAgent.client_id is deprecated. * See chalk/auth/v1/displayagent.proto;l=24 * @return The clientId. */ @java.lang.Deprecated public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.DisplayUserAgent.client_id is deprecated. * See chalk/auth/v1/displayagent.proto;l=24 * @return The bytes for clientId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.DisplayUserAgent.client_id is deprecated. * See chalk/auth/v1/displayagent.proto;l=24 * @param value The clientId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.DisplayUserAgent.client_id is deprecated. * See chalk/auth/v1/displayagent.proto;l=24 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClientId() { clientId_ = getDefaultInstance().getClientId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.DisplayUserAgent.client_id is deprecated. * See chalk/auth/v1/displayagent.proto;l=24 * @param value The bytes for clientId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object userId_ = ""; /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The userId. */ 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; } } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The bytes for userId. */ 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; } } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object teamId_ = ""; /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ public java.lang.String getTeamId() { java.lang.Object ref = teamId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @param value The teamId to set. * @return This builder for chaining. */ public Builder setTeamId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return This builder for chaining. */ public Builder clearTeamId() { teamId_ = getDefaultInstance().getTeamId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @param value The bytes for teamId to set. * @return This builder for chaining. */ public Builder setTeamIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions> permissionsByEnvironment_ = java.util.Collections.emptyList(); private void ensurePermissionsByEnvironmentIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { permissionsByEnvironment_ = new java.util.ArrayList<ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions>(permissionsByEnvironment_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder> permissionsByEnvironmentBuilder_; /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions> getPermissionsByEnvironmentList() { if (permissionsByEnvironmentBuilder_ == null) { return java.util.Collections.unmodifiableList(permissionsByEnvironment_); } else { return permissionsByEnvironmentBuilder_.getMessageList(); } } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public int getPermissionsByEnvironmentCount() { if (permissionsByEnvironmentBuilder_ == null) { return permissionsByEnvironment_.size(); } else { return permissionsByEnvironmentBuilder_.getCount(); } } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions getPermissionsByEnvironment(int index) { if (permissionsByEnvironmentBuilder_ == null) { return permissionsByEnvironment_.get(index); } else { return permissionsByEnvironmentBuilder_.getMessage(index); } } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder setPermissionsByEnvironment( int index, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions value) { if (permissionsByEnvironmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsByEnvironmentIsMutable(); permissionsByEnvironment_.set(index, value); onChanged(); } else { permissionsByEnvironmentBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder setPermissionsByEnvironment( int index, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder builderForValue) { if (permissionsByEnvironmentBuilder_ == null) { ensurePermissionsByEnvironmentIsMutable(); permissionsByEnvironment_.set(index, builderForValue.build()); onChanged(); } else { permissionsByEnvironmentBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder addPermissionsByEnvironment(ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions value) { if (permissionsByEnvironmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsByEnvironmentIsMutable(); permissionsByEnvironment_.add(value); onChanged(); } else { permissionsByEnvironmentBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder addPermissionsByEnvironment( int index, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions value) { if (permissionsByEnvironmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePermissionsByEnvironmentIsMutable(); permissionsByEnvironment_.add(index, value); onChanged(); } else { permissionsByEnvironmentBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder addPermissionsByEnvironment( ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder builderForValue) { if (permissionsByEnvironmentBuilder_ == null) { ensurePermissionsByEnvironmentIsMutable(); permissionsByEnvironment_.add(builderForValue.build()); onChanged(); } else { permissionsByEnvironmentBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder addPermissionsByEnvironment( int index, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder builderForValue) { if (permissionsByEnvironmentBuilder_ == null) { ensurePermissionsByEnvironmentIsMutable(); permissionsByEnvironment_.add(index, builderForValue.build()); onChanged(); } else { permissionsByEnvironmentBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder addAllPermissionsByEnvironment( java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions> values) { if (permissionsByEnvironmentBuilder_ == null) { ensurePermissionsByEnvironmentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, permissionsByEnvironment_); onChanged(); } else { permissionsByEnvironmentBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder clearPermissionsByEnvironment() { if (permissionsByEnvironmentBuilder_ == null) { permissionsByEnvironment_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { permissionsByEnvironmentBuilder_.clear(); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder removePermissionsByEnvironment(int index) { if (permissionsByEnvironmentBuilder_ == null) { ensurePermissionsByEnvironmentIsMutable(); permissionsByEnvironment_.remove(index); onChanged(); } else { permissionsByEnvironmentBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder getPermissionsByEnvironmentBuilder( int index) { return getPermissionsByEnvironmentFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder getPermissionsByEnvironmentOrBuilder( int index) { if (permissionsByEnvironmentBuilder_ == null) { return permissionsByEnvironment_.get(index); } else { return permissionsByEnvironmentBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder> getPermissionsByEnvironmentOrBuilderList() { if (permissionsByEnvironmentBuilder_ != null) { return permissionsByEnvironmentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(permissionsByEnvironment_); } } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder addPermissionsByEnvironmentBuilder() { return getPermissionsByEnvironmentFieldBuilder().addBuilder( ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder addPermissionsByEnvironmentBuilder( int index) { return getPermissionsByEnvironmentFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder> getPermissionsByEnvironmentBuilderList() { return getPermissionsByEnvironmentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder> getPermissionsByEnvironmentFieldBuilder() { if (permissionsByEnvironmentBuilder_ == null) { permissionsByEnvironmentBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions.Builder, ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder>( permissionsByEnvironment_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); permissionsByEnvironment_ = null; } return permissionsByEnvironmentBuilder_; } private boolean impersonated_ ; /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ @java.lang.Override public boolean getImpersonated() { return impersonated_; } /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @param value The impersonated to set. * @return This builder for chaining. */ public Builder setImpersonated(boolean value) { impersonated_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return This builder for chaining. */ public Builder clearImpersonated() { bitField0_ = (bitField0_ & ~0x00000010); impersonated_ = false; onChanged(); return this; } private java.lang.Object name_ = ""; /** * <code>string name = 6 [json_name = "name"];</code> * @return The name. */ 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; } } /** * <code>string name = 6 [json_name = "name"];</code> * @return The bytes for name. */ 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; } } /** * <code>string name = 6 [json_name = "name"];</code> * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>string name = 6 [json_name = "name"];</code> * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * <code>string name = 6 [json_name = "name"];</code> * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object email_ = ""; /** * <code>string email = 7 [json_name = "email"];</code> * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string email = 7 [json_name = "email"];</code> * @return The bytes for email. */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string email = 7 [json_name = "email"];</code> * @param value The email to set. * @return This builder for chaining. */ public Builder setEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * <code>string email = 7 [json_name = "email"];</code> * @return This builder for chaining. */ public Builder clearEmail() { email_ = getDefaultInstance().getEmail(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * <code>string email = 7 [json_name = "email"];</code> * @param value The bytes for email to set. * @return This builder for chaining. */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object teamName_ = ""; /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The teamName. */ public java.lang.String getTeamName() { java.lang.Object ref = teamName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The bytes for teamName. */ public com.google.protobuf.ByteString getTeamNameBytes() { java.lang.Object ref = teamName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @param value The teamName to set. * @return This builder for chaining. */ public Builder setTeamName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return This builder for chaining. */ public Builder clearTeamName() { teamName_ = getDefaultInstance().getTeamName(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @param value The bytes for teamName to set. * @return This builder for chaining. */ public Builder setTeamNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> customerClaims_ = java.util.Collections.emptyList(); private void ensureCustomerClaimsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { customerClaims_ = new java.util.ArrayList<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim>(customerClaims_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> customerClaimsBuilder_; /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> getCustomerClaimsList() { if (customerClaimsBuilder_ == null) { return java.util.Collections.unmodifiableList(customerClaims_); } else { return customerClaimsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public int getCustomerClaimsCount() { if (customerClaimsBuilder_ == null) { return customerClaims_.size(); } else { return customerClaimsBuilder_.getCount(); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim getCustomerClaims(int index) { if (customerClaimsBuilder_ == null) { return customerClaims_.get(index); } else { return customerClaimsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public Builder setCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.set(index, value); onChanged(); } else { customerClaimsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public Builder setCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.set(index, builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims(ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.add(value); onChanged(); } else { customerClaimsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.add(index, value); onChanged(); } else { customerClaimsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(index, builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public Builder addAllCustomerClaims( java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> values) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, customerClaims_); onChanged(); } else { customerClaimsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public Builder clearCustomerClaims() { if (customerClaimsBuilder_ == null) { customerClaims_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { customerClaimsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public Builder removeCustomerClaims(int index) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.remove(index); onChanged(); } else { customerClaimsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder getCustomerClaimsBuilder( int index) { return getCustomerClaimsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder getCustomerClaimsOrBuilder( int index) { if (customerClaimsBuilder_ == null) { return customerClaims_.get(index); } else { return customerClaimsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> getCustomerClaimsOrBuilderList() { if (customerClaimsBuilder_ != null) { return customerClaimsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(customerClaims_); } } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder addCustomerClaimsBuilder() { return getCustomerClaimsFieldBuilder().addBuilder( ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder addCustomerClaimsBuilder( int index) { return getCustomerClaimsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder> getCustomerClaimsBuilderList() { return getCustomerClaimsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> getCustomerClaimsFieldBuilder() { if (customerClaimsBuilder_ == null) { customerClaimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder>( customerClaims_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); customerClaims_ = null; } return customerClaimsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.DisplayUserAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.DisplayUserAgent) private static final ai.chalk.protos.chalk.auth.v1.DisplayUserAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.DisplayUserAgent(); } public static ai.chalk.protos.chalk.auth.v1.DisplayUserAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DisplayUserAgent> PARSER = new com.google.protobuf.AbstractParser<DisplayUserAgent>() { @java.lang.Override public DisplayUserAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DisplayUserAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DisplayUserAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.DisplayUserAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayUserAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface DisplayUserAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.DisplayUserAgent) com.google.protobuf.MessageOrBuilder { /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.DisplayUserAgent.client_id is deprecated. * See chalk/auth/v1/displayagent.proto;l=24 * @return The clientId. */ @java.lang.Deprecated java.lang.String getClientId(); /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.DisplayUserAgent.client_id is deprecated. * See chalk/auth/v1/displayagent.proto;l=24 * @return The bytes for clientId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClientIdBytes(); /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The userId. */ java.lang.String getUserId(); /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ java.lang.String getTeamId(); /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ com.google.protobuf.ByteString getTeamIdBytes(); /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions> getPermissionsByEnvironmentList(); /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissions getPermissionsByEnvironment(int index); /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ int getPermissionsByEnvironmentCount(); /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder> getPermissionsByEnvironmentOrBuilderList(); /** * <code>repeated .chalk.auth.v1.DisplayEnvironmentPermissions permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayEnvironmentPermissionsOrBuilder getPermissionsByEnvironmentOrBuilder( int index); /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ boolean getImpersonated(); /** * <code>string name = 6 [json_name = "name"];</code> * @return The name. */ java.lang.String getName(); /** * <code>string name = 6 [json_name = "name"];</code> * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * <code>string email = 7 [json_name = "email"];</code> * @return The email. */ java.lang.String getEmail(); /** * <code>string email = 7 [json_name = "email"];</code> * @return The bytes for email. */ com.google.protobuf.ByteString getEmailBytes(); /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The teamName. */ java.lang.String getTeamName(); /** * <code>string team_name = 8 [json_name = "teamName"];</code> * @return The bytes for teamName. */ com.google.protobuf.ByteString getTeamNameBytes(); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ java.util.List<ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim> getCustomerClaimsList(); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayCustomClaim getCustomerClaims(int index); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ int getCustomerClaimsCount(); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder> getCustomerClaimsOrBuilderList(); /** * <code>repeated .chalk.auth.v1.DisplayCustomClaim customer_claims = 9 [json_name = "customerClaims"];</code> */ ai.chalk.protos.chalk.auth.v1.DisplayCustomClaimOrBuilder getCustomerClaimsOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/DisplayagentProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/displayagent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public final class DisplayagentProto { private DisplayagentProto() {} 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_chalk_auth_v1_DisplayPermission_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_DisplayPermission_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_DisplayUserAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_DisplayUserAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_DisplayCustomClaim_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_DisplayCustomClaim_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_DisplayServiceTokenAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_DisplayServiceTokenAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_DisplayEngineAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_DisplayEngineAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_DisplayTenantAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_DisplayTenantAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_DisplayAgent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_DisplayAgent_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 chalk/auth/v1/displayagent.proto\022\rchal" + "k.auth.v1\032%chalk/auth/v1/featurepermissi" + "on.proto\032\037chalk/auth/v1/permissions.prot" + "o\032\037google/protobuf/timestamp.proto\"b\n\021Di" + "splayPermission\022\022\n\004name\030\001 \001(\tR\004name\0229\n\np" + "ermission\030\002 \001(\0162\031.chalk.auth.v1.Permissi" + "onR\npermission\"\367\001\n\035DisplayEnvironmentPer" + "missions\022%\n\016environment_id\030\001 \001(\tR\renviro" + "nmentId\022)\n\020environment_name\030\002 \001(\tR\017envir" + "onmentName\022\035\n\nproject_id\030\003 \001(\tR\tprojectI" + "d\022!\n\014project_name\030\004 \001(\tR\013projectName\022B\n\013" + "permissions\030\005 \003(\0132 .chalk.auth.v1.Displa" + "yPermissionR\013permissions\"\210\003\n\020DisplayUser" + "Agent\022\037\n\tclient_id\030\001 \001(\tB\002\030\001R\010clientId\022\027" + "\n\007user_id\030\002 \001(\tR\006userId\022\027\n\007team_id\030\003 \001(\t" + "R\006teamId\022j\n\032permissions_by_environment\030\004" + " \003(\0132,.chalk.auth.v1.DisplayEnvironmentP" + "ermissionsR\030permissionsByEnvironment\022\"\n\014" + "impersonated\030\005 \001(\010R\014impersonated\022\022\n\004name" + "\030\006 \001(\tR\004name\022\024\n\005email\030\007 \001(\tR\005email\022\033\n\tte" + "am_name\030\010 \001(\tR\010teamName\022J\n\017customer_clai" + "ms\030\t \003(\0132!.chalk.auth.v1.DisplayCustomCl" + "aimR\016customerClaims\">\n\022DisplayCustomClai" + "m\022\020\n\003key\030\001 \001(\tR\003key\022\026\n\006values\030\002 \003(\tR\006val" + "ues\"\304\004\n\030DisplayServiceTokenAgent\022\016\n\002id\030\001" + " \001(\tR\002id\022\033\n\tclient_id\030\002 \001(\tR\010clientId\022\027\n" + "\007team_id\030\003 \001(\tR\006teamId\022\035\n\nproject_id\030\004 \001" + "(\tR\tprojectId\022%\n\016environment_id\030\005 \001(\tR\re" + "nvironmentId\022B\n\013permissions\030\006 \003(\0132 .chal" + "k.auth.v1.DisplayPermissionR\013permissions" + "\022\022\n\004name\030\007 \001(\tR\004name\022\033\n\tteam_name\030\010 \001(\tR" + "\010teamName\022!\n\014project_name\030\t \001(\tR\013project" + "Name\022)\n\020environment_name\030\n \001(\tR\017environm" + "entName\022J\n\017customer_claims\030\013 \003(\0132!.chalk" + ".auth.v1.DisplayCustomClaimR\016customerCla" + "ims\022R\n\023feature_permissions\030\014 \001(\0132!.chalk" + ".auth.v1.FeaturePermissionsR\022featurePerm" + "issions\0229\n\ncreated_at\030\r \001(\0132\032.google.pro" + "tobuf.TimestampR\tcreatedAt\"\222\002\n\022DisplayEn" + "gineAgent\022\016\n\002id\030\001 \001(\tR\002id\022\027\n\007team_id\030\002 \001" + "(\tR\006teamId\022\035\n\nproject_id\030\003 \001(\tR\tprojectI" + "d\022%\n\016environment_id\030\004 \001(\tR\renvironmentId" + "\022\"\n\014impersonated\030\005 \001(\010R\014impersonated\022\033\n\t" + "team_name\030\006 \001(\tR\010teamName\022!\n\014project_nam" + "e\030\007 \001(\tR\013projectName\022)\n\020environment_name" + "\030\010 \001(\tR\017environmentName\"\024\n\022DisplayTenant" + "Agent\"\035\n\033DisplayMetadataServiceAgent\"\250\003\n" + "\014DisplayAgent\022@\n\nuser_agent\030\001 \001(\0132\037.chal" + "k.auth.v1.DisplayUserAgentH\000R\tuserAgent\022" + "Y\n\023service_token_agent\030\002 \001(\0132\'.chalk.aut" + "h.v1.DisplayServiceTokenAgentH\000R\021service" + "TokenAgent\022F\n\014engine_agent\030\003 \001(\0132!.chalk" + ".auth.v1.DisplayEngineAgentH\000R\013engineAge" + "nt\022F\n\014tenant_agent\030\004 \001(\0132!.chalk.auth.v1" + ".DisplayTenantAgentH\000R\013tenantAgent\022b\n\026me" + "tadata_service_agent\030\005 \001(\0132*.chalk.auth." + "v1.DisplayMetadataServiceAgentH\000R\024metada" + "taServiceAgentB\007\n\005agentB\230\001\n\035ai.chalk.pro" + "tos.chalk.auth.v1B\021DisplayagentProtoP\001Z\016" + "auth/v1;authv1\242\002\003CAX\252\002\rChalk.Auth.V1\312\002\rC" + "halk\\Auth\\V1\342\002\031Chalk\\Auth\\V1\\GPBMetadata" + "\352\002\017Chalk::Auth::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.getDescriptor(), ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_chalk_auth_v1_DisplayPermission_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_auth_v1_DisplayPermission_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_DisplayPermission_descriptor, new java.lang.String[] { "Name", "Permission", }); internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_DisplayEnvironmentPermissions_descriptor, new java.lang.String[] { "EnvironmentId", "EnvironmentName", "ProjectId", "ProjectName", "Permissions", }); internal_static_chalk_auth_v1_DisplayUserAgent_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_chalk_auth_v1_DisplayUserAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_DisplayUserAgent_descriptor, new java.lang.String[] { "ClientId", "UserId", "TeamId", "PermissionsByEnvironment", "Impersonated", "Name", "Email", "TeamName", "CustomerClaims", }); internal_static_chalk_auth_v1_DisplayCustomClaim_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_chalk_auth_v1_DisplayCustomClaim_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_DisplayCustomClaim_descriptor, new java.lang.String[] { "Key", "Values", }); internal_static_chalk_auth_v1_DisplayServiceTokenAgent_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_chalk_auth_v1_DisplayServiceTokenAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_DisplayServiceTokenAgent_descriptor, new java.lang.String[] { "Id", "ClientId", "TeamId", "ProjectId", "EnvironmentId", "Permissions", "Name", "TeamName", "ProjectName", "EnvironmentName", "CustomerClaims", "FeaturePermissions", "CreatedAt", }); internal_static_chalk_auth_v1_DisplayEngineAgent_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_chalk_auth_v1_DisplayEngineAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_DisplayEngineAgent_descriptor, new java.lang.String[] { "Id", "TeamId", "ProjectId", "EnvironmentId", "Impersonated", "TeamName", "ProjectName", "EnvironmentName", }); internal_static_chalk_auth_v1_DisplayTenantAgent_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_chalk_auth_v1_DisplayTenantAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_DisplayTenantAgent_descriptor, new java.lang.String[] { }); internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_DisplayMetadataServiceAgent_descriptor, new java.lang.String[] { }); internal_static_chalk_auth_v1_DisplayAgent_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_chalk_auth_v1_DisplayAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_DisplayAgent_descriptor, new java.lang.String[] { "UserAgent", "ServiceTokenAgent", "EngineAgent", "TenantAgent", "MetadataServiceAgent", "Agent", }); ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.getDescriptor(); ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/EngineAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.EngineAgent} */ public final class EngineAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.EngineAgent) EngineAgentOrBuilder { private static final long serialVersionUID = 0L; // Use EngineAgent.newBuilder() to construct. private EngineAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private EngineAgent() { id_ = ""; teamId_ = ""; projectId_ = ""; environmentId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EngineAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EngineAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EngineAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.EngineAgent.class, ai.chalk.protos.chalk.auth.v1.EngineAgent.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ @java.lang.Override 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ @java.lang.Override 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; } } public static final int TEAM_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object teamId_ = ""; /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The teamId. */ @java.lang.Override public java.lang.String getTeamId() { java.lang.Object ref = teamId_; 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(); teamId_ = s; return s; } } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The bytes for teamId. */ @java.lang.Override public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROJECT_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The projectId. */ @java.lang.Override public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; } } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The bytes for projectId. */ @java.lang.Override public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The environmentId. */ @java.lang.Override public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; 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(); environmentId_ = s; return s; } } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ @java.lang.Override public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IMPERSONATED_FIELD_NUMBER = 5; private boolean impersonated_ = false; /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ @java.lang.Override public boolean getImpersonated() { return impersonated_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, environmentId_); } if (impersonated_ != false) { output.writeBool(5, impersonated_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, environmentId_); } if (impersonated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, impersonated_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.EngineAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.EngineAgent other = (ai.chalk.protos.chalk.auth.v1.EngineAgent) obj; if (!getId() .equals(other.getId())) return false; if (!getTeamId() .equals(other.getTeamId())) return false; if (!getProjectId() .equals(other.getProjectId())) return false; if (!getEnvironmentId() .equals(other.getEnvironmentId())) return false; if (getImpersonated() != other.getImpersonated()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; hash = (53 * hash) + getTeamId().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentId().hashCode(); hash = (37 * hash) + IMPERSONATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getImpersonated()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.EngineAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent 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 ai.chalk.protos.chalk.auth.v1.EngineAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent 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 ai.chalk.protos.chalk.auth.v1.EngineAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent 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(ai.chalk.protos.chalk.auth.v1.EngineAgent 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; } /** * Protobuf type {@code chalk.auth.v1.EngineAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.EngineAgent) ai.chalk.protos.chalk.auth.v1.EngineAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EngineAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EngineAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.EngineAgent.class, ai.chalk.protos.chalk.auth.v1.EngineAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.EngineAgent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; teamId_ = ""; projectId_ = ""; environmentId_ = ""; impersonated_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EngineAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EngineAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.EngineAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EngineAgent build() { ai.chalk.protos.chalk.auth.v1.EngineAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EngineAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.EngineAgent result = new ai.chalk.protos.chalk.auth.v1.EngineAgent(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.EngineAgent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.teamId_ = teamId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.environmentId_ = environmentId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.impersonated_ = impersonated_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.EngineAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.EngineAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.EngineAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.EngineAgent.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getTeamId().isEmpty()) { teamId_ = other.teamId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getEnvironmentId().isEmpty()) { environmentId_ = other.environmentId_; bitField0_ |= 0x00000008; onChanged(); } if (other.getImpersonated() != false) { setImpersonated(other.getImpersonated()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { teamId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { projectId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { environmentId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { impersonated_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string id = 1 [json_name = "id"];</code> * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string id = 1 [json_name = "id"];</code> * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object teamId_ = ""; /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The teamId. */ public java.lang.String getTeamId() { java.lang.Object ref = teamId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The bytes for teamId. */ public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @param value The teamId to set. * @return This builder for chaining. */ public Builder setTeamId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return This builder for chaining. */ public Builder clearTeamId() { teamId_ = getDefaultInstance().getTeamId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @param value The bytes for teamId to set. * @return This builder for chaining. */ public Builder setTeamIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object projectId_ = ""; /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The bytes for projectId. */ public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return This builder for chaining. */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @param value The bytes for projectId to set. * @return This builder for chaining. */ public Builder setProjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The environmentId. */ public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environmentId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environmentId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @param value The environmentId to set. * @return This builder for chaining. */ public Builder setEnvironmentId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } environmentId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return This builder for chaining. */ public Builder clearEnvironmentId() { environmentId_ = getDefaultInstance().getEnvironmentId(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @param value The bytes for environmentId to set. * @return This builder for chaining. */ public Builder setEnvironmentIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); environmentId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private boolean impersonated_ ; /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ @java.lang.Override public boolean getImpersonated() { return impersonated_; } /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @param value The impersonated to set. * @return This builder for chaining. */ public Builder setImpersonated(boolean value) { impersonated_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return This builder for chaining. */ public Builder clearImpersonated() { bitField0_ = (bitField0_ & ~0x00000010); impersonated_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.EngineAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.EngineAgent) private static final ai.chalk.protos.chalk.auth.v1.EngineAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.EngineAgent(); } public static ai.chalk.protos.chalk.auth.v1.EngineAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<EngineAgent> PARSER = new com.google.protobuf.AbstractParser<EngineAgent>() { @java.lang.Override public EngineAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<EngineAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<EngineAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EngineAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/EngineAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface EngineAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.EngineAgent) com.google.protobuf.MessageOrBuilder { /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ java.lang.String getId(); /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The teamId. */ java.lang.String getTeamId(); /** * <code>string team_id = 2 [json_name = "teamId"];</code> * @return The bytes for teamId. */ com.google.protobuf.ByteString getTeamIdBytes(); /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The projectId. */ java.lang.String getProjectId(); /** * <code>string project_id = 3 [json_name = "projectId"];</code> * @return The bytes for projectId. */ com.google.protobuf.ByteString getProjectIdBytes(); /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The environmentId. */ java.lang.String getEnvironmentId(); /** * <code>string environment_id = 4 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ com.google.protobuf.ByteString getEnvironmentIdBytes(); /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ boolean getImpersonated(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/EnvironmentPermissions.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.EnvironmentPermissions} */ public final class EnvironmentPermissions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.EnvironmentPermissions) EnvironmentPermissionsOrBuilder { private static final long serialVersionUID = 0L; // Use EnvironmentPermissions.newBuilder() to construct. private EnvironmentPermissions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private EnvironmentPermissions() { permissions_ = java.util.Collections.emptyList(); customerClaims_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnvironmentPermissions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EnvironmentPermissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EnvironmentPermissions_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.class, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.Builder.class); } private int bitField0_; public static final int PERMISSIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<java.lang.Integer> permissions_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission> permissions_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission>() { public ai.chalk.protos.chalk.auth.v1.Permission convert(java.lang.Integer from) { ai.chalk.protos.chalk.auth.v1.Permission result = ai.chalk.protos.chalk.auth.v1.Permission.forNumber(from); return result == null ? ai.chalk.protos.chalk.auth.v1.Permission.UNRECOGNIZED : result; } }; /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return A list containing the permissions. */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.auth.v1.Permission> getPermissionsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission>(permissions_, permissions_converter_); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return The count of permissions. */ @java.lang.Override public int getPermissionsCount() { return permissions_.size(); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param index The index of the element to return. * @return The permissions at the given index. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.Permission getPermissions(int index) { return permissions_converter_.convert(permissions_.get(index)); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return A list containing the enum numeric values on the wire for permissions. */ @java.lang.Override public java.util.List<java.lang.Integer> getPermissionsValueList() { return permissions_; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param index The index of the value to return. * @return The enum numeric value on the wire of permissions at the given index. */ @java.lang.Override public int getPermissionsValue(int index) { return permissions_.get(index); } private int permissionsMemoizedSerializedSize; public static final int FEATURE_PERMISSIONS_FIELD_NUMBER = 3; private ai.chalk.protos.chalk.auth.v1.FeaturePermissions featurePermissions_; /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> * @return Whether the featurePermissions field is set. */ @java.lang.Override public boolean hasFeaturePermissions() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> * @return The featurePermissions. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissions getFeaturePermissions() { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder getFeaturePermissionsOrBuilder() { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } public static final int CUSTOMER_CLAIMS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> customerClaims_; /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> getCustomerClaimsList() { return customerClaims_; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> getCustomerClaimsOrBuilderList() { return customerClaims_; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ @java.lang.Override public int getCustomerClaimsCount() { return customerClaims_.size(); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.CustomClaim getCustomerClaims(int index) { return customerClaims_.get(index); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder getCustomerClaimsOrBuilder( int index) { return customerClaims_.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 { getSerializedSize(); if (getPermissionsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(permissionsMemoizedSerializedSize); } for (int i = 0; i < permissions_.size(); i++) { output.writeEnumNoTag(permissions_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getFeaturePermissions()); } for (int i = 0; i < customerClaims_.size(); i++) { output.writeMessage(4, customerClaims_.get(i)); } getUnknownFields().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 < permissions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(permissions_.get(i)); } size += dataSize; if (!getPermissionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }permissionsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFeaturePermissions()); } for (int i = 0; i < customerClaims_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, customerClaims_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions other = (ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions) obj; if (!permissions_.equals(other.permissions_)) return false; if (hasFeaturePermissions() != other.hasFeaturePermissions()) return false; if (hasFeaturePermissions()) { if (!getFeaturePermissions() .equals(other.getFeaturePermissions())) return false; } if (!getCustomerClaimsList() .equals(other.getCustomerClaimsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPermissionsCount() > 0) { hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + permissions_.hashCode(); } if (hasFeaturePermissions()) { hash = (37 * hash) + FEATURE_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getFeaturePermissions().hashCode(); } if (getCustomerClaimsCount() > 0) { hash = (37 * hash) + CUSTOMER_CLAIMS_FIELD_NUMBER; hash = (53 * hash) + getCustomerClaimsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions 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 ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions 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 ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions 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(ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions 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; } /** * Protobuf type {@code chalk.auth.v1.EnvironmentPermissions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.EnvironmentPermissions) ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EnvironmentPermissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EnvironmentPermissions_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.class, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFeaturePermissionsFieldBuilder(); getCustomerClaimsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); featurePermissions_ = null; if (featurePermissionsBuilder_ != null) { featurePermissionsBuilder_.dispose(); featurePermissionsBuilder_ = null; } if (customerClaimsBuilder_ == null) { customerClaims_ = java.util.Collections.emptyList(); } else { customerClaims_ = null; customerClaimsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_EnvironmentPermissions_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions build() { ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions buildPartial() { ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions result = new ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions result) { if (((bitField0_ & 0x00000001) != 0)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); bitField0_ = (bitField0_ & ~0x00000001); } result.permissions_ = permissions_; if (customerClaimsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { customerClaims_ = java.util.Collections.unmodifiableList(customerClaims_); bitField0_ = (bitField0_ & ~0x00000004); } result.customerClaims_ = customerClaims_; } else { result.customerClaims_ = customerClaimsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.featurePermissions_ = featurePermissionsBuilder_ == null ? featurePermissions_ : featurePermissionsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions other) { if (other == ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.getDefaultInstance()) return this; if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } if (other.hasFeaturePermissions()) { mergeFeaturePermissions(other.getFeaturePermissions()); } if (customerClaimsBuilder_ == null) { if (!other.customerClaims_.isEmpty()) { if (customerClaims_.isEmpty()) { customerClaims_ = other.customerClaims_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCustomerClaimsIsMutable(); customerClaims_.addAll(other.customerClaims_); } onChanged(); } } else { if (!other.customerClaims_.isEmpty()) { if (customerClaimsBuilder_.isEmpty()) { customerClaimsBuilder_.dispose(); customerClaimsBuilder_ = null; customerClaims_ = other.customerClaims_; bitField0_ = (bitField0_ & ~0x00000004); customerClaimsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomerClaimsFieldBuilder() : null; } else { customerClaimsBuilder_.addAllMessages(other.customerClaims_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { int tmpRaw = input.readEnum(); ensurePermissionsIsMutable(); permissions_.add(tmpRaw); break; } // case 16 case 18: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensurePermissionsIsMutable(); permissions_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 18 case 26: { input.readMessage( getFeaturePermissionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 26 case 34: { ai.chalk.protos.chalk.auth.v1.CustomClaim m = input.readMessage( ai.chalk.protos.chalk.auth.v1.CustomClaim.parser(), extensionRegistry); if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(m); } else { customerClaimsBuilder_.addMessage(m); } break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List<java.lang.Integer> permissions_ = java.util.Collections.emptyList(); private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new java.util.ArrayList<java.lang.Integer>(permissions_); bitField0_ |= 0x00000001; } } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return A list containing the permissions. */ public java.util.List<ai.chalk.protos.chalk.auth.v1.Permission> getPermissionsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission>(permissions_, permissions_converter_); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param index The index of the element to return. * @return The permissions at the given index. */ public ai.chalk.protos.chalk.auth.v1.Permission getPermissions(int index) { return permissions_converter_.convert(permissions_.get(index)); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ public Builder setPermissions( int index, ai.chalk.protos.chalk.auth.v1.Permission value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value.getNumber()); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param value The permissions to add. * @return This builder for chaining. */ public Builder addPermissions(ai.chalk.protos.chalk.auth.v1.Permission value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value.getNumber()); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param values The permissions to add. * @return This builder for chaining. */ public Builder addAllPermissions( java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.Permission> values) { ensurePermissionsIsMutable(); for (ai.chalk.protos.chalk.auth.v1.Permission value : values) { permissions_.add(value.getNumber()); } onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return This builder for chaining. */ public Builder clearPermissions() { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return A list containing the enum numeric values on the wire for permissions. */ public java.util.List<java.lang.Integer> getPermissionsValueList() { return java.util.Collections.unmodifiableList(permissions_); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param index The index of the value to return. * @return The enum numeric value on the wire of permissions at the given index. */ public int getPermissionsValue(int index) { return permissions_.get(index); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param index The index to set the value at. * @param value The enum numeric value on the wire for permissions to set. * @return This builder for chaining. */ public Builder setPermissionsValue( int index, int value) { ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param value The enum numeric value on the wire for permissions to add. * @return This builder for chaining. */ public Builder addPermissionsValue(int value) { ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param values The enum numeric values on the wire for permissions to add. * @return This builder for chaining. */ public Builder addAllPermissionsValue( java.lang.Iterable<java.lang.Integer> values) { ensurePermissionsIsMutable(); for (int value : values) { permissions_.add(value); } onChanged(); return this; } private ai.chalk.protos.chalk.auth.v1.FeaturePermissions featurePermissions_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.FeaturePermissions, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder, ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder> featurePermissionsBuilder_; /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> * @return Whether the featurePermissions field is set. */ public boolean hasFeaturePermissions() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> * @return The featurePermissions. */ public ai.chalk.protos.chalk.auth.v1.FeaturePermissions getFeaturePermissions() { if (featurePermissionsBuilder_ == null) { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } else { return featurePermissionsBuilder_.getMessage(); } } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> */ public Builder setFeaturePermissions(ai.chalk.protos.chalk.auth.v1.FeaturePermissions value) { if (featurePermissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } featurePermissions_ = value; } else { featurePermissionsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> */ public Builder setFeaturePermissions( ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder builderForValue) { if (featurePermissionsBuilder_ == null) { featurePermissions_ = builderForValue.build(); } else { featurePermissionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> */ public Builder mergeFeaturePermissions(ai.chalk.protos.chalk.auth.v1.FeaturePermissions value) { if (featurePermissionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && featurePermissions_ != null && featurePermissions_ != ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance()) { getFeaturePermissionsBuilder().mergeFrom(value); } else { featurePermissions_ = value; } } else { featurePermissionsBuilder_.mergeFrom(value); } if (featurePermissions_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> */ public Builder clearFeaturePermissions() { bitField0_ = (bitField0_ & ~0x00000002); featurePermissions_ = null; if (featurePermissionsBuilder_ != null) { featurePermissionsBuilder_.dispose(); featurePermissionsBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder getFeaturePermissionsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getFeaturePermissionsFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder getFeaturePermissionsOrBuilder() { if (featurePermissionsBuilder_ != null) { return featurePermissionsBuilder_.getMessageOrBuilder(); } else { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.FeaturePermissions, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder, ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder> getFeaturePermissionsFieldBuilder() { if (featurePermissionsBuilder_ == null) { featurePermissionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.FeaturePermissions, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder, ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder>( getFeaturePermissions(), getParentForChildren(), isClean()); featurePermissions_ = null; } return featurePermissionsBuilder_; } private java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> customerClaims_ = java.util.Collections.emptyList(); private void ensureCustomerClaimsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { customerClaims_ = new java.util.ArrayList<ai.chalk.protos.chalk.auth.v1.CustomClaim>(customerClaims_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.CustomClaim, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> customerClaimsBuilder_; /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> getCustomerClaimsList() { if (customerClaimsBuilder_ == null) { return java.util.Collections.unmodifiableList(customerClaims_); } else { return customerClaimsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public int getCustomerClaimsCount() { if (customerClaimsBuilder_ == null) { return customerClaims_.size(); } else { return customerClaimsBuilder_.getCount(); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaim getCustomerClaims(int index) { if (customerClaimsBuilder_ == null) { return customerClaims_.get(index); } else { return customerClaimsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public Builder setCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.CustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.set(index, value); onChanged(); } else { customerClaimsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public Builder setCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.set(index, builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims(ai.chalk.protos.chalk.auth.v1.CustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.add(value); onChanged(); } else { customerClaimsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.CustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.add(index, value); onChanged(); } else { customerClaimsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(index, builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public Builder addAllCustomerClaims( java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.CustomClaim> values) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, customerClaims_); onChanged(); } else { customerClaimsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public Builder clearCustomerClaims() { if (customerClaimsBuilder_ == null) { customerClaims_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { customerClaimsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public Builder removeCustomerClaims(int index) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.remove(index); onChanged(); } else { customerClaimsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder getCustomerClaimsBuilder( int index) { return getCustomerClaimsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder getCustomerClaimsOrBuilder( int index) { if (customerClaimsBuilder_ == null) { return customerClaims_.get(index); } else { return customerClaimsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> getCustomerClaimsOrBuilderList() { if (customerClaimsBuilder_ != null) { return customerClaimsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(customerClaims_); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder addCustomerClaimsBuilder() { return getCustomerClaimsFieldBuilder().addBuilder( ai.chalk.protos.chalk.auth.v1.CustomClaim.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder addCustomerClaimsBuilder( int index) { return getCustomerClaimsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.auth.v1.CustomClaim.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder> getCustomerClaimsBuilderList() { return getCustomerClaimsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.CustomClaim, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> getCustomerClaimsFieldBuilder() { if (customerClaimsBuilder_ == null) { customerClaimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.CustomClaim, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder>( customerClaims_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); customerClaims_ = null; } return customerClaimsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.EnvironmentPermissions) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.EnvironmentPermissions) private static final ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions(); } public static ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<EnvironmentPermissions> PARSER = new com.google.protobuf.AbstractParser<EnvironmentPermissions>() { @java.lang.Override public EnvironmentPermissions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<EnvironmentPermissions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<EnvironmentPermissions> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/EnvironmentPermissionsOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface EnvironmentPermissionsOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.EnvironmentPermissions) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return A list containing the permissions. */ java.util.List<ai.chalk.protos.chalk.auth.v1.Permission> getPermissionsList(); /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return The count of permissions. */ int getPermissionsCount(); /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param index The index of the element to return. * @return The permissions at the given index. */ ai.chalk.protos.chalk.auth.v1.Permission getPermissions(int index); /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @return A list containing the enum numeric values on the wire for permissions. */ java.util.List<java.lang.Integer> getPermissionsValueList(); /** * <code>repeated .chalk.auth.v1.Permission permissions = 2 [json_name = "permissions"];</code> * @param index The index of the value to return. * @return The enum numeric value on the wire of permissions at the given index. */ int getPermissionsValue(int index); /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> * @return Whether the featurePermissions field is set. */ boolean hasFeaturePermissions(); /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> * @return The featurePermissions. */ ai.chalk.protos.chalk.auth.v1.FeaturePermissions getFeaturePermissions(); /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 3 [json_name = "featurePermissions"];</code> */ ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder getFeaturePermissionsOrBuilder(); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> getCustomerClaimsList(); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ ai.chalk.protos.chalk.auth.v1.CustomClaim getCustomerClaims(int index); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ int getCustomerClaimsCount(); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> getCustomerClaimsOrBuilderList(); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 4 [json_name = "customerClaims"];</code> */ ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder getCustomerClaimsOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/FeaturePermission.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/featurepermission.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf enum {@code chalk.auth.v1.FeaturePermission} */ public enum FeaturePermission implements com.google.protobuf.ProtocolMessageEnum { /** * <code>FEATURE_PERMISSION_UNSPECIFIED = 0;</code> */ FEATURE_PERMISSION_UNSPECIFIED(0), /** * <pre> * Allow unfettered access to the feature. * This permission is the default permission for all features. * </pre> * * <code>FEATURE_PERMISSION_ALLOW = 1;</code> */ FEATURE_PERMISSION_ALLOW(1), /** * <pre> * Allow access to the feature only within a query plan, * and do not return the feature to the client directly. * </pre> * * <code>FEATURE_PERMISSION_ALLOW_INTERNAL = 2;</code> */ FEATURE_PERMISSION_ALLOW_INTERNAL(2), /** * <pre> * Deny access to the feature, even if the user hasn't requested * access to this feature directly, but needs the feature to compute * the result of the query. * </pre> * * <code>FEATURE_PERMISSION_DENY = 3;</code> */ FEATURE_PERMISSION_DENY(3), UNRECOGNIZED(-1), ; /** * <code>FEATURE_PERMISSION_UNSPECIFIED = 0;</code> */ public static final int FEATURE_PERMISSION_UNSPECIFIED_VALUE = 0; /** * <pre> * Allow unfettered access to the feature. * This permission is the default permission for all features. * </pre> * * <code>FEATURE_PERMISSION_ALLOW = 1;</code> */ public static final int FEATURE_PERMISSION_ALLOW_VALUE = 1; /** * <pre> * Allow access to the feature only within a query plan, * and do not return the feature to the client directly. * </pre> * * <code>FEATURE_PERMISSION_ALLOW_INTERNAL = 2;</code> */ public static final int FEATURE_PERMISSION_ALLOW_INTERNAL_VALUE = 2; /** * <pre> * Deny access to the feature, even if the user hasn't requested * access to this feature directly, but needs the feature to compute * the result of the query. * </pre> * * <code>FEATURE_PERMISSION_DENY = 3;</code> */ public static final int FEATURE_PERMISSION_DENY_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; } /** * @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 FeaturePermission 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 FeaturePermission forNumber(int value) { switch (value) { case 0: return FEATURE_PERMISSION_UNSPECIFIED; case 1: return FEATURE_PERMISSION_ALLOW; case 2: return FEATURE_PERMISSION_ALLOW_INTERNAL; case 3: return FEATURE_PERMISSION_DENY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<FeaturePermission> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FeaturePermission> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<FeaturePermission>() { public FeaturePermission findValueByNumber(int number) { return FeaturePermission.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 ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.getDescriptor().getEnumTypes().get(0); } private static final FeaturePermission[] VALUES = values(); public static FeaturePermission 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 FeaturePermission(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.auth.v1.FeaturePermission) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/FeaturePermissions.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/featurepermission.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.FeaturePermissions} */ public final class FeaturePermissions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.FeaturePermissions) FeaturePermissionsOrBuilder { private static final long serialVersionUID = 0L; // Use FeaturePermissions.newBuilder() to construct. private FeaturePermissions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private FeaturePermissions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FeaturePermissions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.internal_static_chalk_auth_v1_FeaturePermissions_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetTags(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.internal_static_chalk_auth_v1_FeaturePermissions_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.FeaturePermissions.class, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder.class); } public static final int TAGS_FIELD_NUMBER = 1; private static final class TagsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, java.lang.Integer>newDefaultInstance( ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.internal_static_chalk_auth_v1_FeaturePermissions_TagsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.ENUM, ai.chalk.protos.chalk.auth.v1.FeaturePermission.FEATURE_PERMISSION_UNSPECIFIED.getNumber()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> tags_; private com.google.protobuf.MapField<java.lang.String, java.lang.Integer> internalGetTags() { if (tags_ == null) { return com.google.protobuf.MapField.emptyMapField( TagsDefaultEntryHolder.defaultEntry); } return tags_; } private static final com.google.protobuf.Internal.MapAdapter.Converter< java.lang.Integer, ai.chalk.protos.chalk.auth.v1.FeaturePermission> tagsValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( ai.chalk.protos.chalk.auth.v1.FeaturePermission.internalGetValueMap(), ai.chalk.protos.chalk.auth.v1.FeaturePermission.UNRECOGNIZED); private static final java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> internalGetAdaptedTagsMap( java.util.Map<java.lang.String, java.lang.Integer> map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission, java.lang.Integer>( map, tagsValueConverter); } public int getTagsCount() { return internalGetTags().getMap().size(); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public boolean containsTags( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTags().getMap().containsKey(key); } /** * Use {@link #getTagsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> getTags() { return getTagsMap(); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> getTagsMap() { return internalGetAdaptedTagsMap( internalGetTags().getMap());} /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.auth.v1.FeaturePermission getTagsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.auth.v1.FeaturePermission defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetTags().getMap(); return map.containsKey(key) ? tagsValueConverter.doForward(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermission getTagsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetTags().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return tagsValueConverter.doForward(map.get(key)); } /** * Use {@link #getTagsValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Integer> getTagsValue() { return getTagsValueMap(); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, java.lang.Integer> getTagsValueMap() { return internalGetTags().getMap(); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public int getTagsValueOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetTags().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public int getTagsValueOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetTags().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 { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry<java.lang.String, java.lang.Integer> entry : internalGetTags().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer> tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, tags__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.FeaturePermissions)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.FeaturePermissions other = (ai.chalk.protos.chalk.auth.v1.FeaturePermissions) obj; if (!internalGetTags().equals( other.internalGetTags())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetTags().getMap().isEmpty()) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + internalGetTags().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions 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 ai.chalk.protos.chalk.auth.v1.FeaturePermissions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions 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 ai.chalk.protos.chalk.auth.v1.FeaturePermissions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions 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(ai.chalk.protos.chalk.auth.v1.FeaturePermissions 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; } /** * Protobuf type {@code chalk.auth.v1.FeaturePermissions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.FeaturePermissions) ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.internal_static_chalk_auth_v1_FeaturePermissions_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetTags(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: return internalGetMutableTags(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.internal_static_chalk_auth_v1_FeaturePermissions_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.FeaturePermissions.class, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.FeaturePermissions.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableTags().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.FeaturepermissionProto.internal_static_chalk_auth_v1_FeaturePermissions_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissions getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissions build() { ai.chalk.protos.chalk.auth.v1.FeaturePermissions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissions buildPartial() { ai.chalk.protos.chalk.auth.v1.FeaturePermissions result = new ai.chalk.protos.chalk.auth.v1.FeaturePermissions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.FeaturePermissions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tags_ = internalGetTags(); result.tags_.makeImmutable(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.FeaturePermissions) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.FeaturePermissions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.FeaturePermissions other) { if (other == ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance()) return this; internalGetMutableTags().mergeFrom( other.internalGetTags()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer> tags__ = input.readMessage( TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableTags().getMutableMap().put( tags__.getKey(), tags__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> tags_; private com.google.protobuf.MapField<java.lang.String, java.lang.Integer> internalGetTags() { if (tags_ == null) { return com.google.protobuf.MapField.emptyMapField( TagsDefaultEntryHolder.defaultEntry); } return tags_; } private com.google.protobuf.MapField<java.lang.String, java.lang.Integer> internalGetMutableTags() { if (tags_ == null) { tags_ = com.google.protobuf.MapField.newMapField( TagsDefaultEntryHolder.defaultEntry); } if (!tags_.isMutable()) { tags_ = tags_.copy(); } bitField0_ |= 0x00000001; onChanged(); return tags_; } public int getTagsCount() { return internalGetTags().getMap().size(); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public boolean containsTags( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTags().getMap().containsKey(key); } /** * Use {@link #getTagsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> getTags() { return getTagsMap(); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> getTagsMap() { return internalGetAdaptedTagsMap( internalGetTags().getMap());} /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.auth.v1.FeaturePermission getTagsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.auth.v1.FeaturePermission defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetTags().getMap(); return map.containsKey(key) ? tagsValueConverter.doForward(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermission getTagsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetTags().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return tagsValueConverter.doForward(map.get(key)); } /** * Use {@link #getTagsValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Integer> getTagsValue() { return getTagsValueMap(); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, java.lang.Integer> getTagsValueMap() { return internalGetTags().getMap(); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public int getTagsValueOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetTags().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ @java.lang.Override public int getTagsValueOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetTags().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTags() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableTags().getMutableMap() .clear(); return this; } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ public Builder removeTags( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTags().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> getMutableTags() { bitField0_ |= 0x00000001; return internalGetAdaptedTagsMap( internalGetMutableTags().getMutableMap()); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ public Builder putTags( java.lang.String key, ai.chalk.protos.chalk.auth.v1.FeaturePermission value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTags().getMutableMap() .put(key, tagsValueConverter.doBackward(value)); bitField0_ |= 0x00000001; return this; } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ public Builder putAllTags( java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> values) { internalGetAdaptedTagsMap( internalGetMutableTags().getMutableMap()) .putAll(values); bitField0_ |= 0x00000001; return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Integer> getMutableTagsValue() { bitField0_ |= 0x00000001; return internalGetMutableTags().getMutableMap(); } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ public Builder putTagsValue( java.lang.String key, int value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTags().getMutableMap() .put(key, value); bitField0_ |= 0x00000001; return this; } /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ public Builder putAllTagsValue( java.util.Map<java.lang.String, java.lang.Integer> values) { internalGetMutableTags().getMutableMap() .putAll(values); bitField0_ |= 0x00000001; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.FeaturePermissions) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.FeaturePermissions) private static final ai.chalk.protos.chalk.auth.v1.FeaturePermissions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.FeaturePermissions(); } public static ai.chalk.protos.chalk.auth.v1.FeaturePermissions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<FeaturePermissions> PARSER = new com.google.protobuf.AbstractParser<FeaturePermissions>() { @java.lang.Override public FeaturePermissions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<FeaturePermissions> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<FeaturePermissions> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/FeaturePermissionsOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/featurepermission.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface FeaturePermissionsOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.FeaturePermissions) com.google.protobuf.MessageOrBuilder { /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ int getTagsCount(); /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ boolean containsTags( java.lang.String key); /** * Use {@link #getTagsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> getTags(); /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.FeaturePermission> getTagsMap(); /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ /* nullable */ ai.chalk.protos.chalk.auth.v1.FeaturePermission getTagsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.auth.v1.FeaturePermission defaultValue); /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ ai.chalk.protos.chalk.auth.v1.FeaturePermission getTagsOrThrow( java.lang.String key); /** * Use {@link #getTagsValueMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, java.lang.Integer> getTagsValue(); /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ java.util.Map<java.lang.String, java.lang.Integer> getTagsValueMap(); /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ int getTagsValueOrDefault( java.lang.String key, int defaultValue); /** * <code>map&lt;string, .chalk.auth.v1.FeaturePermission&gt; tags = 1 [json_name = "tags"];</code> */ int getTagsValueOrThrow( java.lang.String key); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/FeaturepermissionProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/featurepermission.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public final class FeaturepermissionProto { private FeaturepermissionProto() {} 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_chalk_auth_v1_FeaturePermissions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_FeaturePermissions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_auth_v1_FeaturePermissions_TagsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_auth_v1_FeaturePermissions_TagsEntry_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%chalk/auth/v1/featurepermission.proto\022" + "\rchalk.auth.v1\"\260\001\n\022FeaturePermissions\022?\n" + "\004tags\030\001 \003(\0132+.chalk.auth.v1.FeaturePermi" + "ssions.TagsEntryR\004tags\032Y\n\tTagsEntry\022\020\n\003k" + "ey\030\001 \001(\tR\003key\0226\n\005value\030\002 \001(\0162 .chalk.aut" + "h.v1.FeaturePermissionR\005value:\0028\001*\231\001\n\021Fe" + "aturePermission\022\"\n\036FEATURE_PERMISSION_UN" + "SPECIFIED\020\000\022\034\n\030FEATURE_PERMISSION_ALLOW\020" + "\001\022%\n!FEATURE_PERMISSION_ALLOW_INTERNAL\020\002" + "\022\033\n\027FEATURE_PERMISSION_DENY\020\003B\235\001\n\035ai.cha" + "lk.protos.chalk.auth.v1B\026Featurepermissi" + "onProtoP\001Z\016auth/v1;authv1\242\002\003CAX\252\002\rChalk." + "Auth.V1\312\002\rChalk\\Auth\\V1\342\002\031Chalk\\Auth\\V1\\" + "GPBMetadata\352\002\017Chalk::Auth::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_chalk_auth_v1_FeaturePermissions_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_auth_v1_FeaturePermissions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_FeaturePermissions_descriptor, new java.lang.String[] { "Tags", }); internal_static_chalk_auth_v1_FeaturePermissions_TagsEntry_descriptor = internal_static_chalk_auth_v1_FeaturePermissions_descriptor.getNestedTypes().get(0); internal_static_chalk_auth_v1_FeaturePermissions_TagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_auth_v1_FeaturePermissions_TagsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/MetadataServiceAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.MetadataServiceAgent} */ public final class MetadataServiceAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.MetadataServiceAgent) MetadataServiceAgentOrBuilder { private static final long serialVersionUID = 0L; // Use MetadataServiceAgent.newBuilder() to construct. private MetadataServiceAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private MetadataServiceAgent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetadataServiceAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_MetadataServiceAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_MetadataServiceAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.class, ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent other = (ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent 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 ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent 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 ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent 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(ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent 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; } /** * Protobuf type {@code chalk.auth.v1.MetadataServiceAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.MetadataServiceAgent) ai.chalk.protos.chalk.auth.v1.MetadataServiceAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_MetadataServiceAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_MetadataServiceAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.class, ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_MetadataServiceAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent build() { ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent result = new ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.MetadataServiceAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.MetadataServiceAgent) private static final ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent(); } public static ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<MetadataServiceAgent> PARSER = new com.google.protobuf.AbstractParser<MetadataServiceAgent>() { @java.lang.Override public MetadataServiceAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<MetadataServiceAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<MetadataServiceAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.MetadataServiceAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/MetadataServiceAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface MetadataServiceAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.MetadataServiceAgent) com.google.protobuf.MessageOrBuilder { }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/Permission.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/permissions.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf enum {@code chalk.auth.v1.Permission} */ public enum Permission implements com.google.protobuf.ProtocolMessageEnum { /** * <pre> * Default value -- should never be set. * </pre> * * <code>PERMISSION_UNSPECIFIED = 0;</code> */ PERMISSION_UNSPECIFIED(0), /** * <pre> * Only used for creating a new token * </pre> * * <code>PERMISSION_INSECURE_UNAUTHENTICATED = 1;</code> */ PERMISSION_INSECURE_UNAUTHENTICATED(1), /** * <pre> * User is authenticated FOR THE ENVIRONMENT. This permissions should be used sparingly * (e.g. for ping checks that shouldn't be exposed to the public) * </pre> * * <code>PERMISSION_AUTHENTICATED = 2;</code> */ PERMISSION_AUTHENTICATED(2), /** * <pre> * Query online features. * </pre> * * <code>PERMISSION_QUERY_ONLINE = 3;</code> */ PERMISSION_QUERY_ONLINE(3), /** * <pre> * Query offline features. * </pre> * * <code>PERMISSION_QUERY_OFFLINE = 4;</code> */ PERMISSION_QUERY_OFFLINE(4), /** * <pre> * Create a new chart or alert * </pre> * * <code>PERMISSION_MONITORING_CREATE = 5;</code> */ PERMISSION_MONITORING_CREATE(5), /** * <pre> * See charts and alerts * </pre> * * <code>PERMISSION_MONITORING_READ = 6;</code> */ PERMISSION_MONITORING_READ(6), /** * <pre> * Add team members to your organization * </pre> * * <code>PERMISSION_TEAM_ADD = 7;</code> */ PERMISSION_TEAM_ADD(7), /** * <pre> * Remove a team member * </pre> * * <code>PERMISSION_TEAM_DELETE = 8;</code> */ PERMISSION_TEAM_DELETE(8), /** * <pre> * See the team members in your organization * </pre> * * <code>PERMISSION_TEAM_LIST = 9;</code> */ PERMISSION_TEAM_LIST(9), /** * <pre> * Configure authentication options for your organization * </pre> * * <code>PERMISSION_TEAM_ADMIN = 10;</code> */ PERMISSION_TEAM_ADMIN(10), /** * <pre> * Read information about deployments. * </pre> * * <code>PERMISSION_DEPLOY_READ = 11;</code> */ PERMISSION_DEPLOY_READ(11), /** * <pre> * Create a new deployment. * </pre> * * <code>PERMISSION_DEPLOY_CREATE = 12;</code> */ PERMISSION_DEPLOY_CREATE(12), /** * <pre> * Create a new preview deployment. * </pre> * * <code>PERMISSION_DEPLOY_PREVIEW = 13;</code> */ PERMISSION_DEPLOY_PREVIEW(13), /** * <pre> * Redeploy an existing deployment. * </pre> * * <code>PERMISSION_DEPLOY_REDEPLOY = 14;</code> */ PERMISSION_DEPLOY_REDEPLOY(14), /** * <pre> * Read logs from resolvers. * </pre> * * <code>PERMISSION_LOGS_LIST = 15;</code> */ PERMISSION_LOGS_LIST(15), /** * <pre> * Read the scheduled runs. * </pre> * * <code>PERMISSION_CRON_READ = 16;</code> */ PERMISSION_CRON_READ(16), /** * <pre> * Trigger a new scheduled run. * </pre> * * <code>PERMISSION_CRON_CREATE = 17;</code> */ PERMISSION_CRON_CREATE(17), /** * <pre> * Create, modify, or delete secret values. * </pre> * * <code>PERMISSION_SECRETS_WRITE = 18;</code> */ PERMISSION_SECRETS_WRITE(18), /** * <pre> * Decrypt secret values. * </pre> * * <code>PERMISSION_SECRETS_DECRYPT = 19;</code> */ PERMISSION_SECRETS_DECRYPT(19), /** * <pre> * See the list of available secrets. Reading secrets is not allowed with this permission. * </pre> * * <code>PERMISSION_SECRETS_LIST = 20;</code> */ PERMISSION_SECRETS_LIST(20), /** * <pre> * Create, modify, or delete service tokens. * </pre> * * <code>PERMISSION_TOKENS_WRITE = 21;</code> */ PERMISSION_TOKENS_WRITE(21), /** * <pre> * List the service tokens and see client ids, but not client secrets. * </pre> * * <code>PERMISSION_TOKENS_LIST = 22;</code> */ PERMISSION_TOKENS_LIST(22), /** * <pre> * View information about migrations. * </pre> * * <code>PERMISSION_MIGRATE_READ = 23;</code> */ PERMISSION_MIGRATE_READ(23), /** * <pre> * Create a migration plan. * </pre> * * <code>PERMISSION_MIGRATE_PLAN = 24;</code> */ PERMISSION_MIGRATE_PLAN(24), /** * <pre> * Execute a migration plan. * </pre> * * <code>PERMISSION_MIGRATE_EXECUTE = 25;</code> */ PERMISSION_MIGRATE_EXECUTE(25), /** * <pre> * Create a new project * </pre> * * <code>PERMISSION_PROJECT_CREATE = 26;</code> */ PERMISSION_PROJECT_CREATE(26), /** * <pre> * Administer Chalk * </pre> * * <code>PERMISSION_CHALK_ADMIN = 27;</code> */ PERMISSION_CHALK_ADMIN(27), UNRECOGNIZED(-1), ; /** * <pre> * Default value -- should never be set. * </pre> * * <code>PERMISSION_UNSPECIFIED = 0;</code> */ public static final int PERMISSION_UNSPECIFIED_VALUE = 0; /** * <pre> * Only used for creating a new token * </pre> * * <code>PERMISSION_INSECURE_UNAUTHENTICATED = 1;</code> */ public static final int PERMISSION_INSECURE_UNAUTHENTICATED_VALUE = 1; /** * <pre> * User is authenticated FOR THE ENVIRONMENT. This permissions should be used sparingly * (e.g. for ping checks that shouldn't be exposed to the public) * </pre> * * <code>PERMISSION_AUTHENTICATED = 2;</code> */ public static final int PERMISSION_AUTHENTICATED_VALUE = 2; /** * <pre> * Query online features. * </pre> * * <code>PERMISSION_QUERY_ONLINE = 3;</code> */ public static final int PERMISSION_QUERY_ONLINE_VALUE = 3; /** * <pre> * Query offline features. * </pre> * * <code>PERMISSION_QUERY_OFFLINE = 4;</code> */ public static final int PERMISSION_QUERY_OFFLINE_VALUE = 4; /** * <pre> * Create a new chart or alert * </pre> * * <code>PERMISSION_MONITORING_CREATE = 5;</code> */ public static final int PERMISSION_MONITORING_CREATE_VALUE = 5; /** * <pre> * See charts and alerts * </pre> * * <code>PERMISSION_MONITORING_READ = 6;</code> */ public static final int PERMISSION_MONITORING_READ_VALUE = 6; /** * <pre> * Add team members to your organization * </pre> * * <code>PERMISSION_TEAM_ADD = 7;</code> */ public static final int PERMISSION_TEAM_ADD_VALUE = 7; /** * <pre> * Remove a team member * </pre> * * <code>PERMISSION_TEAM_DELETE = 8;</code> */ public static final int PERMISSION_TEAM_DELETE_VALUE = 8; /** * <pre> * See the team members in your organization * </pre> * * <code>PERMISSION_TEAM_LIST = 9;</code> */ public static final int PERMISSION_TEAM_LIST_VALUE = 9; /** * <pre> * Configure authentication options for your organization * </pre> * * <code>PERMISSION_TEAM_ADMIN = 10;</code> */ public static final int PERMISSION_TEAM_ADMIN_VALUE = 10; /** * <pre> * Read information about deployments. * </pre> * * <code>PERMISSION_DEPLOY_READ = 11;</code> */ public static final int PERMISSION_DEPLOY_READ_VALUE = 11; /** * <pre> * Create a new deployment. * </pre> * * <code>PERMISSION_DEPLOY_CREATE = 12;</code> */ public static final int PERMISSION_DEPLOY_CREATE_VALUE = 12; /** * <pre> * Create a new preview deployment. * </pre> * * <code>PERMISSION_DEPLOY_PREVIEW = 13;</code> */ public static final int PERMISSION_DEPLOY_PREVIEW_VALUE = 13; /** * <pre> * Redeploy an existing deployment. * </pre> * * <code>PERMISSION_DEPLOY_REDEPLOY = 14;</code> */ public static final int PERMISSION_DEPLOY_REDEPLOY_VALUE = 14; /** * <pre> * Read logs from resolvers. * </pre> * * <code>PERMISSION_LOGS_LIST = 15;</code> */ public static final int PERMISSION_LOGS_LIST_VALUE = 15; /** * <pre> * Read the scheduled runs. * </pre> * * <code>PERMISSION_CRON_READ = 16;</code> */ public static final int PERMISSION_CRON_READ_VALUE = 16; /** * <pre> * Trigger a new scheduled run. * </pre> * * <code>PERMISSION_CRON_CREATE = 17;</code> */ public static final int PERMISSION_CRON_CREATE_VALUE = 17; /** * <pre> * Create, modify, or delete secret values. * </pre> * * <code>PERMISSION_SECRETS_WRITE = 18;</code> */ public static final int PERMISSION_SECRETS_WRITE_VALUE = 18; /** * <pre> * Decrypt secret values. * </pre> * * <code>PERMISSION_SECRETS_DECRYPT = 19;</code> */ public static final int PERMISSION_SECRETS_DECRYPT_VALUE = 19; /** * <pre> * See the list of available secrets. Reading secrets is not allowed with this permission. * </pre> * * <code>PERMISSION_SECRETS_LIST = 20;</code> */ public static final int PERMISSION_SECRETS_LIST_VALUE = 20; /** * <pre> * Create, modify, or delete service tokens. * </pre> * * <code>PERMISSION_TOKENS_WRITE = 21;</code> */ public static final int PERMISSION_TOKENS_WRITE_VALUE = 21; /** * <pre> * List the service tokens and see client ids, but not client secrets. * </pre> * * <code>PERMISSION_TOKENS_LIST = 22;</code> */ public static final int PERMISSION_TOKENS_LIST_VALUE = 22; /** * <pre> * View information about migrations. * </pre> * * <code>PERMISSION_MIGRATE_READ = 23;</code> */ public static final int PERMISSION_MIGRATE_READ_VALUE = 23; /** * <pre> * Create a migration plan. * </pre> * * <code>PERMISSION_MIGRATE_PLAN = 24;</code> */ public static final int PERMISSION_MIGRATE_PLAN_VALUE = 24; /** * <pre> * Execute a migration plan. * </pre> * * <code>PERMISSION_MIGRATE_EXECUTE = 25;</code> */ public static final int PERMISSION_MIGRATE_EXECUTE_VALUE = 25; /** * <pre> * Create a new project * </pre> * * <code>PERMISSION_PROJECT_CREATE = 26;</code> */ public static final int PERMISSION_PROJECT_CREATE_VALUE = 26; /** * <pre> * Administer Chalk * </pre> * * <code>PERMISSION_CHALK_ADMIN = 27;</code> */ public static final int PERMISSION_CHALK_ADMIN_VALUE = 27; 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 Permission 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 Permission forNumber(int value) { switch (value) { case 0: return PERMISSION_UNSPECIFIED; case 1: return PERMISSION_INSECURE_UNAUTHENTICATED; case 2: return PERMISSION_AUTHENTICATED; case 3: return PERMISSION_QUERY_ONLINE; case 4: return PERMISSION_QUERY_OFFLINE; case 5: return PERMISSION_MONITORING_CREATE; case 6: return PERMISSION_MONITORING_READ; case 7: return PERMISSION_TEAM_ADD; case 8: return PERMISSION_TEAM_DELETE; case 9: return PERMISSION_TEAM_LIST; case 10: return PERMISSION_TEAM_ADMIN; case 11: return PERMISSION_DEPLOY_READ; case 12: return PERMISSION_DEPLOY_CREATE; case 13: return PERMISSION_DEPLOY_PREVIEW; case 14: return PERMISSION_DEPLOY_REDEPLOY; case 15: return PERMISSION_LOGS_LIST; case 16: return PERMISSION_CRON_READ; case 17: return PERMISSION_CRON_CREATE; case 18: return PERMISSION_SECRETS_WRITE; case 19: return PERMISSION_SECRETS_DECRYPT; case 20: return PERMISSION_SECRETS_LIST; case 21: return PERMISSION_TOKENS_WRITE; case 22: return PERMISSION_TOKENS_LIST; case 23: return PERMISSION_MIGRATE_READ; case 24: return PERMISSION_MIGRATE_PLAN; case 25: return PERMISSION_MIGRATE_EXECUTE; case 26: return PERMISSION_PROJECT_CREATE; case 27: return PERMISSION_CHALK_ADMIN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Permission> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Permission> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Permission>() { public Permission findValueByNumber(int number) { return Permission.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 ai.chalk.protos.chalk.auth.v1.PermissionsProto.getDescriptor().getEnumTypes().get(0); } private static final Permission[] VALUES = values(); public static Permission 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 Permission(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.auth.v1.Permission) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/PermissionsProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/permissions.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public final class PermissionsProto { private PermissionsProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { registry.add(ai.chalk.protos.chalk.auth.v1.PermissionsProto.permission); } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public static final int PERMISSION_FIELD_NUMBER = 2000; /** * <code>extend .google.protobuf.MethodOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, ai.chalk.protos.chalk.auth.v1.Permission> permission = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( ai.chalk.protos.chalk.auth.v1.Permission.class, null); public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\037chalk/auth/v1/permissions.proto\022\rchalk" + ".auth.v1\032\035chalk/utils/v1/encoding.proto\032" + " google/protobuf/descriptor.proto*\307\n\n\nPe" + "rmission\022\032\n\026PERMISSION_UNSPECIFIED\020\000\022\'\n#" + "PERMISSION_INSECURE_UNAUTHENTICATED\020\001\022\034\n" + "\030PERMISSION_AUTHENTICATED\020\002\022\033\n\027PERMISSIO" + "N_QUERY_ONLINE\020\003\022\034\n\030PERMISSION_QUERY_OFF" + "LINE\020\004\022 \n\034PERMISSION_MONITORING_CREATE\020\005" + "\022\036\n\032PERMISSION_MONITORING_READ\020\006\022\027\n\023PERM" + "ISSION_TEAM_ADD\020\007\022\032\n\026PERMISSION_TEAM_DEL" + "ETE\020\010\022\030\n\024PERMISSION_TEAM_LIST\020\t\022\031\n\025PERMI" + "SSION_TEAM_ADMIN\020\n\022\032\n\026PERMISSION_DEPLOY_" + "READ\020\013\022\034\n\030PERMISSION_DEPLOY_CREATE\020\014\022\035\n\031" + "PERMISSION_DEPLOY_PREVIEW\020\r\022\036\n\032PERMISSIO" + "N_DEPLOY_REDEPLOY\020\016\022\030\n\024PERMISSION_LOGS_L" + "IST\020\017\022\030\n\024PERMISSION_CRON_READ\020\020\022\032\n\026PERMI" + "SSION_CRON_CREATE\020\021\022\034\n\030PERMISSION_SECRET" + "S_WRITE\020\022\022\036\n\032PERMISSION_SECRETS_DECRYPT\020" + "\023\022\033\n\027PERMISSION_SECRETS_LIST\020\024\022\033\n\027PERMIS" + "SION_TOKENS_WRITE\020\025\022\032\n\026PERMISSION_TOKENS" + "_LIST\020\026\022\033\n\027PERMISSION_MIGRATE_READ\020\027\022\033\n\027" + "PERMISSION_MIGRATE_PLAN\020\030\022\036\n\032PERMISSION_" + "MIGRATE_EXECUTE\020\031\022\035\n\031PERMISSION_PROJECT_" + "CREATE\020\032\022\032\n\026PERMISSION_CHALK_ADMIN\020\033\032\374\003\342" + "\241\'\367\003\n\034\010\001\022\030insecure_unauthenticated\n\021\010\002\022\r" + "authenticated\n\020\010\003\022\014query.online\n\021\010\004\022\rque" + "ry.offline\n\025\010\005\022\021monitoring.create\n\023\010\006\022\017m" + "onitoring.read\n\014\010\007\022\010team.add\n\017\010\010\022\013team.d" + "elete\n\r\010\t\022\tteam.list\n\016\010\n\022\nteam.admin\n\017\010\013" + "\022\013deploy.read\n\021\010\014\022\rdeploy.create\n\022\010\r\022\016de" + "ploy.preview\n\023\010\016\022\017deploy.redeploy\n\r\010\017\022\tl" + "ogs.list\n\r\010\020\022\tcron.read\n\017\010\021\022\013cron.create" + "\n\021\010\022\022\rsecrets.write\n\023\010\023\022\017secrets.decrypt" + "\n\020\010\024\022\014secrets.list\n\020\010\025\022\014tokens.write\n\017\010\026" + "\022\013tokens.list\n\020\010\027\022\014migrate.read\n\020\010\030\022\014mig" + "rate.plan\n\023\010\031\022\017migrate.execute\n\022\010\032\022\016proj" + "ect.create\n\017\010\033\022\013chalk.admin:Z\n\npermissio" + "n\022\036.google.protobuf.MethodOptions\030\320\017 \001(\016" + "2\031.chalk.auth.v1.PermissionR\npermissionB" + "\227\001\n\035ai.chalk.protos.chalk.auth.v1B\020Permi" + "ssionsProtoP\001Z\016auth/v1;authv1\242\002\003CAX\252\002\rCh" + "alk.Auth.V1\312\002\rChalk\\Auth\\V1\342\002\031Chalk\\Auth" + "\\V1\\GPBMetadata\352\002\017Chalk::Auth::V1b\006proto" + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { ai.chalk.protos.chalk.utils.v1.EncodingProto.getDescriptor(), com.google.protobuf.DescriptorProtos.getDescriptor(), }); permission.internalInit(descriptor.getExtensions().get(0)); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(ai.chalk.protos.chalk.utils.v1.EncodingProto.encoding); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); ai.chalk.protos.chalk.utils.v1.EncodingProto.getDescriptor(); com.google.protobuf.DescriptorProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/ServiceTokenAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.ServiceTokenAgent} */ public final class ServiceTokenAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.ServiceTokenAgent) ServiceTokenAgentOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceTokenAgent.newBuilder() to construct. private ServiceTokenAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ServiceTokenAgent() { id_ = ""; clientId_ = ""; teamId_ = ""; environment_ = ""; permissions_ = java.util.Collections.emptyList(); customClaims_ = com.google.protobuf.LazyStringArrayList.emptyList(); customerClaims_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ServiceTokenAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_ServiceTokenAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_ServiceTokenAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.class, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ @java.lang.Override 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ @java.lang.Override 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; } } public static final int CLIENT_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The clientId. */ @java.lang.Override public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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(); clientId_ = s; return s; } } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The bytes for clientId. */ @java.lang.Override public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEAM_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object teamId_ = ""; /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ @java.lang.Override public java.lang.String getTeamId() { java.lang.Object ref = teamId_; 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(); teamId_ = s; return s; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ @java.lang.Override public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object environment_ = ""; /** * <code>string environment = 4 [json_name = "environment"];</code> * @return The environment. */ @java.lang.Override public java.lang.String getEnvironment() { java.lang.Object ref = environment_; 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(); environment_ = s; return s; } } /** * <code>string environment = 4 [json_name = "environment"];</code> * @return The bytes for environment. */ @java.lang.Override public com.google.protobuf.ByteString getEnvironmentBytes() { java.lang.Object ref = environment_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERMISSIONS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List<java.lang.Integer> permissions_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission> permissions_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission>() { public ai.chalk.protos.chalk.auth.v1.Permission convert(java.lang.Integer from) { ai.chalk.protos.chalk.auth.v1.Permission result = ai.chalk.protos.chalk.auth.v1.Permission.forNumber(from); return result == null ? ai.chalk.protos.chalk.auth.v1.Permission.UNRECOGNIZED : result; } }; /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return A list containing the permissions. */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.auth.v1.Permission> getPermissionsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission>(permissions_, permissions_converter_); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return The count of permissions. */ @java.lang.Override public int getPermissionsCount() { return permissions_.size(); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param index The index of the element to return. * @return The permissions at the given index. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.Permission getPermissions(int index) { return permissions_converter_.convert(permissions_.get(index)); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return A list containing the enum numeric values on the wire for permissions. */ @java.lang.Override public java.util.List<java.lang.Integer> getPermissionsValueList() { return permissions_; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param index The index of the value to return. * @return The enum numeric value on the wire of permissions at the given index. */ @java.lang.Override public int getPermissionsValue(int index) { return permissions_.get(index); } private int permissionsMemoizedSerializedSize; public static final int CUSTOM_CLAIMS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList customClaims_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @return A list containing the customClaims. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getCustomClaimsList() { return customClaims_; } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @return The count of customClaims. */ @java.lang.Deprecated public int getCustomClaimsCount() { return customClaims_.size(); } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param index The index of the element to return. * @return The customClaims at the given index. */ @java.lang.Deprecated public java.lang.String getCustomClaims(int index) { return customClaims_.get(index); } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param index The index of the value to return. * @return The bytes of the customClaims at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getCustomClaimsBytes(int index) { return customClaims_.getByteString(index); } public static final int CUSTOMER_CLAIMS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> customerClaims_; /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> getCustomerClaimsList() { return customerClaims_; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> getCustomerClaimsOrBuilderList() { return customerClaims_; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ @java.lang.Override public int getCustomerClaimsCount() { return customerClaims_.size(); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.CustomClaim getCustomerClaims(int index) { return customerClaims_.get(index); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder getCustomerClaimsOrBuilder( int index) { return customerClaims_.get(index); } public static final int FEATURE_PERMISSIONS_FIELD_NUMBER = 8; private ai.chalk.protos.chalk.auth.v1.FeaturePermissions featurePermissions_; /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> * @return Whether the featurePermissions field is set. */ @java.lang.Override public boolean hasFeaturePermissions() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> * @return The featurePermissions. */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissions getFeaturePermissions() { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder getFeaturePermissionsOrBuilder() { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, environment_); } if (getPermissionsList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(permissionsMemoizedSerializedSize); } for (int i = 0; i < permissions_.size(); i++) { output.writeEnumNoTag(permissions_.get(i)); } for (int i = 0; i < customClaims_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, customClaims_.getRaw(i)); } for (int i = 0; i < customerClaims_.size(); i++) { output.writeMessage(7, customerClaims_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getFeaturePermissions()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, environment_); } { int dataSize = 0; for (int i = 0; i < permissions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(permissions_.get(i)); } size += dataSize; if (!getPermissionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }permissionsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < customClaims_.size(); i++) { dataSize += computeStringSizeNoTag(customClaims_.getRaw(i)); } size += dataSize; size += 1 * getCustomClaimsList().size(); } for (int i = 0; i < customerClaims_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, customerClaims_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getFeaturePermissions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent other = (ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) obj; if (!getId() .equals(other.getId())) return false; if (!getClientId() .equals(other.getClientId())) return false; if (!getTeamId() .equals(other.getTeamId())) return false; if (!getEnvironment() .equals(other.getEnvironment())) return false; if (!permissions_.equals(other.permissions_)) return false; if (!getCustomClaimsList() .equals(other.getCustomClaimsList())) return false; if (!getCustomerClaimsList() .equals(other.getCustomerClaimsList())) return false; if (hasFeaturePermissions() != other.hasFeaturePermissions()) return false; if (hasFeaturePermissions()) { if (!getFeaturePermissions() .equals(other.getFeaturePermissions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; hash = (53 * hash) + getTeamId().hashCode(); hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + getEnvironment().hashCode(); if (getPermissionsCount() > 0) { hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + permissions_.hashCode(); } if (getCustomClaimsCount() > 0) { hash = (37 * hash) + CUSTOM_CLAIMS_FIELD_NUMBER; hash = (53 * hash) + getCustomClaimsList().hashCode(); } if (getCustomerClaimsCount() > 0) { hash = (37 * hash) + CUSTOMER_CLAIMS_FIELD_NUMBER; hash = (53 * hash) + getCustomerClaimsList().hashCode(); } if (hasFeaturePermissions()) { hash = (37 * hash) + FEATURE_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getFeaturePermissions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent 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 ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent 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 ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent 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(ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent 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; } /** * Protobuf type {@code chalk.auth.v1.ServiceTokenAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.ServiceTokenAgent) ai.chalk.protos.chalk.auth.v1.ServiceTokenAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_ServiceTokenAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_ServiceTokenAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.class, ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCustomerClaimsFieldBuilder(); getFeaturePermissionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; clientId_ = ""; teamId_ = ""; environment_ = ""; permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); customClaims_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (customerClaimsBuilder_ == null) { customerClaims_ = java.util.Collections.emptyList(); } else { customerClaims_ = null; customerClaimsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); featurePermissions_ = null; if (featurePermissionsBuilder_ != null) { featurePermissionsBuilder_.dispose(); featurePermissionsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_ServiceTokenAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent build() { ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent result = new ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent result) { if (((bitField0_ & 0x00000010) != 0)) { permissions_ = java.util.Collections.unmodifiableList(permissions_); bitField0_ = (bitField0_ & ~0x00000010); } result.permissions_ = permissions_; if (customerClaimsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { customerClaims_ = java.util.Collections.unmodifiableList(customerClaims_); bitField0_ = (bitField0_ & ~0x00000040); } result.customerClaims_ = customerClaims_; } else { result.customerClaims_ = customerClaimsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.clientId_ = clientId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.teamId_ = teamId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.environment_ = environment_; } if (((from_bitField0_ & 0x00000020) != 0)) { customClaims_.makeImmutable(); result.customClaims_ = customClaims_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.featurePermissions_ = featurePermissionsBuilder_ == null ? featurePermissions_ : featurePermissionsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getTeamId().isEmpty()) { teamId_ = other.teamId_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; bitField0_ |= 0x00000008; onChanged(); } if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePermissionsIsMutable(); permissions_.addAll(other.permissions_); } onChanged(); } if (!other.customClaims_.isEmpty()) { if (customClaims_.isEmpty()) { customClaims_ = other.customClaims_; bitField0_ |= 0x00000020; } else { ensureCustomClaimsIsMutable(); customClaims_.addAll(other.customClaims_); } onChanged(); } if (customerClaimsBuilder_ == null) { if (!other.customerClaims_.isEmpty()) { if (customerClaims_.isEmpty()) { customerClaims_ = other.customerClaims_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureCustomerClaimsIsMutable(); customerClaims_.addAll(other.customerClaims_); } onChanged(); } } else { if (!other.customerClaims_.isEmpty()) { if (customerClaimsBuilder_.isEmpty()) { customerClaimsBuilder_.dispose(); customerClaimsBuilder_ = null; customerClaims_ = other.customerClaims_; bitField0_ = (bitField0_ & ~0x00000040); customerClaimsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomerClaimsFieldBuilder() : null; } else { customerClaimsBuilder_.addAllMessages(other.customerClaims_); } } } if (other.hasFeaturePermissions()) { mergeFeaturePermissions(other.getFeaturePermissions()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { clientId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { teamId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { environment_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { int tmpRaw = input.readEnum(); ensurePermissionsIsMutable(); permissions_.add(tmpRaw); break; } // case 40 case 42: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensurePermissionsIsMutable(); permissions_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureCustomClaimsIsMutable(); customClaims_.add(s); break; } // case 50 case 58: { ai.chalk.protos.chalk.auth.v1.CustomClaim m = input.readMessage( ai.chalk.protos.chalk.auth.v1.CustomClaim.parser(), extensionRegistry); if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(m); } else { customerClaimsBuilder_.addMessage(m); } break; } // case 58 case 66: { input.readMessage( getFeaturePermissionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ 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; } } /** * <code>string id = 1 [json_name = "id"];</code> * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string id = 1 [json_name = "id"];</code> * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string id = 1 [json_name = "id"];</code> * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object clientId_ = ""; /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The clientId. */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The bytes for clientId. */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @param value The clientId to set. * @return This builder for chaining. */ public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return This builder for chaining. */ public Builder clearClientId() { clientId_ = getDefaultInstance().getClientId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @param value The bytes for clientId to set. * @return This builder for chaining. */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object teamId_ = ""; /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ public java.lang.String getTeamId() { java.lang.Object ref = teamId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @param value The teamId to set. * @return This builder for chaining. */ public Builder setTeamId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return This builder for chaining. */ public Builder clearTeamId() { teamId_ = getDefaultInstance().getTeamId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @param value The bytes for teamId to set. * @return This builder for chaining. */ public Builder setTeamIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object environment_ = ""; /** * <code>string environment = 4 [json_name = "environment"];</code> * @return The environment. */ public java.lang.String getEnvironment() { java.lang.Object ref = environment_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environment_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string environment = 4 [json_name = "environment"];</code> * @return The bytes for environment. */ public com.google.protobuf.ByteString getEnvironmentBytes() { java.lang.Object ref = environment_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); environment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string environment = 4 [json_name = "environment"];</code> * @param value The environment to set. * @return This builder for chaining. */ public Builder setEnvironment( java.lang.String value) { if (value == null) { throw new NullPointerException(); } environment_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string environment = 4 [json_name = "environment"];</code> * @return This builder for chaining. */ public Builder clearEnvironment() { environment_ = getDefaultInstance().getEnvironment(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string environment = 4 [json_name = "environment"];</code> * @param value The bytes for environment to set. * @return This builder for chaining. */ public Builder setEnvironmentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); environment_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.util.List<java.lang.Integer> permissions_ = java.util.Collections.emptyList(); private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { permissions_ = new java.util.ArrayList<java.lang.Integer>(permissions_); bitField0_ |= 0x00000010; } } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return A list containing the permissions. */ public java.util.List<ai.chalk.protos.chalk.auth.v1.Permission> getPermissionsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, ai.chalk.protos.chalk.auth.v1.Permission>(permissions_, permissions_converter_); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param index The index of the element to return. * @return The permissions at the given index. */ public ai.chalk.protos.chalk.auth.v1.Permission getPermissions(int index) { return permissions_converter_.convert(permissions_.get(index)); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ public Builder setPermissions( int index, ai.chalk.protos.chalk.auth.v1.Permission value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.set(index, value.getNumber()); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param value The permissions to add. * @return This builder for chaining. */ public Builder addPermissions(ai.chalk.protos.chalk.auth.v1.Permission value) { if (value == null) { throw new NullPointerException(); } ensurePermissionsIsMutable(); permissions_.add(value.getNumber()); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param values The permissions to add. * @return This builder for chaining. */ public Builder addAllPermissions( java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.Permission> values) { ensurePermissionsIsMutable(); for (ai.chalk.protos.chalk.auth.v1.Permission value : values) { permissions_.add(value.getNumber()); } onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return This builder for chaining. */ public Builder clearPermissions() { permissions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return A list containing the enum numeric values on the wire for permissions. */ public java.util.List<java.lang.Integer> getPermissionsValueList() { return java.util.Collections.unmodifiableList(permissions_); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param index The index of the value to return. * @return The enum numeric value on the wire of permissions at the given index. */ public int getPermissionsValue(int index) { return permissions_.get(index); } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param index The index to set the value at. * @param value The enum numeric value on the wire for permissions to set. * @return This builder for chaining. */ public Builder setPermissionsValue( int index, int value) { ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param value The enum numeric value on the wire for permissions to add. * @return This builder for chaining. */ public Builder addPermissionsValue(int value) { ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param values The enum numeric values on the wire for permissions to add. * @return This builder for chaining. */ public Builder addAllPermissionsValue( java.lang.Iterable<java.lang.Integer> values) { ensurePermissionsIsMutable(); for (int value : values) { permissions_.add(value); } onChanged(); return this; } private com.google.protobuf.LazyStringArrayList customClaims_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCustomClaimsIsMutable() { if (!customClaims_.isModifiable()) { customClaims_ = new com.google.protobuf.LazyStringArrayList(customClaims_); } bitField0_ |= 0x00000020; } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @return A list containing the customClaims. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getCustomClaimsList() { customClaims_.makeImmutable(); return customClaims_; } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @return The count of customClaims. */ @java.lang.Deprecated public int getCustomClaimsCount() { return customClaims_.size(); } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param index The index of the element to return. * @return The customClaims at the given index. */ @java.lang.Deprecated public java.lang.String getCustomClaims(int index) { return customClaims_.get(index); } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param index The index of the value to return. * @return The bytes of the customClaims at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getCustomClaimsBytes(int index) { return customClaims_.getByteString(index); } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param index The index to set the value at. * @param value The customClaims to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setCustomClaims( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCustomClaimsIsMutable(); customClaims_.set(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param value The customClaims to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addCustomClaims( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCustomClaimsIsMutable(); customClaims_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param values The customClaims to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addAllCustomClaims( java.lang.Iterable<java.lang.String> values) { ensureCustomClaimsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, customClaims_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearCustomClaims() { customClaims_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param value The bytes of the customClaims to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addCustomClaimsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCustomClaimsIsMutable(); customClaims_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> customerClaims_ = java.util.Collections.emptyList(); private void ensureCustomerClaimsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { customerClaims_ = new java.util.ArrayList<ai.chalk.protos.chalk.auth.v1.CustomClaim>(customerClaims_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.CustomClaim, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> customerClaimsBuilder_; /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> getCustomerClaimsList() { if (customerClaimsBuilder_ == null) { return java.util.Collections.unmodifiableList(customerClaims_); } else { return customerClaimsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public int getCustomerClaimsCount() { if (customerClaimsBuilder_ == null) { return customerClaims_.size(); } else { return customerClaimsBuilder_.getCount(); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaim getCustomerClaims(int index) { if (customerClaimsBuilder_ == null) { return customerClaims_.get(index); } else { return customerClaimsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public Builder setCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.CustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.set(index, value); onChanged(); } else { customerClaimsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public Builder setCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.set(index, builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims(ai.chalk.protos.chalk.auth.v1.CustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.add(value); onChanged(); } else { customerClaimsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.CustomClaim value) { if (customerClaimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomerClaimsIsMutable(); customerClaims_.add(index, value); onChanged(); } else { customerClaimsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public Builder addCustomerClaims( int index, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder builderForValue) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.add(index, builderForValue.build()); onChanged(); } else { customerClaimsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public Builder addAllCustomerClaims( java.lang.Iterable<? extends ai.chalk.protos.chalk.auth.v1.CustomClaim> values) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, customerClaims_); onChanged(); } else { customerClaimsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public Builder clearCustomerClaims() { if (customerClaimsBuilder_ == null) { customerClaims_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { customerClaimsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public Builder removeCustomerClaims(int index) { if (customerClaimsBuilder_ == null) { ensureCustomerClaimsIsMutable(); customerClaims_.remove(index); onChanged(); } else { customerClaimsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder getCustomerClaimsBuilder( int index) { return getCustomerClaimsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder getCustomerClaimsOrBuilder( int index) { if (customerClaimsBuilder_ == null) { return customerClaims_.get(index); } else { return customerClaimsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> getCustomerClaimsOrBuilderList() { if (customerClaimsBuilder_ != null) { return customerClaimsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(customerClaims_); } } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder addCustomerClaimsBuilder() { return getCustomerClaimsFieldBuilder().addBuilder( ai.chalk.protos.chalk.auth.v1.CustomClaim.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder addCustomerClaimsBuilder( int index) { return getCustomerClaimsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.auth.v1.CustomClaim.getDefaultInstance()); } /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder> getCustomerClaimsBuilderList() { return getCustomerClaimsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.CustomClaim, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> getCustomerClaimsFieldBuilder() { if (customerClaimsBuilder_ == null) { customerClaimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.CustomClaim, ai.chalk.protos.chalk.auth.v1.CustomClaim.Builder, ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder>( customerClaims_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); customerClaims_ = null; } return customerClaimsBuilder_; } private ai.chalk.protos.chalk.auth.v1.FeaturePermissions featurePermissions_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.FeaturePermissions, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder, ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder> featurePermissionsBuilder_; /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> * @return Whether the featurePermissions field is set. */ public boolean hasFeaturePermissions() { return ((bitField0_ & 0x00000080) != 0); } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> * @return The featurePermissions. */ public ai.chalk.protos.chalk.auth.v1.FeaturePermissions getFeaturePermissions() { if (featurePermissionsBuilder_ == null) { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } else { return featurePermissionsBuilder_.getMessage(); } } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> */ public Builder setFeaturePermissions(ai.chalk.protos.chalk.auth.v1.FeaturePermissions value) { if (featurePermissionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } featurePermissions_ = value; } else { featurePermissionsBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> */ public Builder setFeaturePermissions( ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder builderForValue) { if (featurePermissionsBuilder_ == null) { featurePermissions_ = builderForValue.build(); } else { featurePermissionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> */ public Builder mergeFeaturePermissions(ai.chalk.protos.chalk.auth.v1.FeaturePermissions value) { if (featurePermissionsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && featurePermissions_ != null && featurePermissions_ != ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance()) { getFeaturePermissionsBuilder().mergeFrom(value); } else { featurePermissions_ = value; } } else { featurePermissionsBuilder_.mergeFrom(value); } if (featurePermissions_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> */ public Builder clearFeaturePermissions() { bitField0_ = (bitField0_ & ~0x00000080); featurePermissions_ = null; if (featurePermissionsBuilder_ != null) { featurePermissionsBuilder_.dispose(); featurePermissionsBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder getFeaturePermissionsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getFeaturePermissionsFieldBuilder().getBuilder(); } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> */ public ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder getFeaturePermissionsOrBuilder() { if (featurePermissionsBuilder_ != null) { return featurePermissionsBuilder_.getMessageOrBuilder(); } else { return featurePermissions_ == null ? ai.chalk.protos.chalk.auth.v1.FeaturePermissions.getDefaultInstance() : featurePermissions_; } } /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.FeaturePermissions, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder, ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder> getFeaturePermissionsFieldBuilder() { if (featurePermissionsBuilder_ == null) { featurePermissionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.auth.v1.FeaturePermissions, ai.chalk.protos.chalk.auth.v1.FeaturePermissions.Builder, ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder>( getFeaturePermissions(), getParentForChildren(), isClean()); featurePermissions_ = null; } return featurePermissionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.ServiceTokenAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.ServiceTokenAgent) private static final ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent(); } public static ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ServiceTokenAgent> PARSER = new com.google.protobuf.AbstractParser<ServiceTokenAgent>() { @java.lang.Override public ServiceTokenAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<ServiceTokenAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ServiceTokenAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.ServiceTokenAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/ServiceTokenAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface ServiceTokenAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.ServiceTokenAgent) com.google.protobuf.MessageOrBuilder { /** * <code>string id = 1 [json_name = "id"];</code> * @return The id. */ java.lang.String getId(); /** * <code>string id = 1 [json_name = "id"];</code> * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The clientId. */ java.lang.String getClientId(); /** * <code>string client_id = 2 [json_name = "clientId"];</code> * @return The bytes for clientId. */ com.google.protobuf.ByteString getClientIdBytes(); /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ java.lang.String getTeamId(); /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ com.google.protobuf.ByteString getTeamIdBytes(); /** * <code>string environment = 4 [json_name = "environment"];</code> * @return The environment. */ java.lang.String getEnvironment(); /** * <code>string environment = 4 [json_name = "environment"];</code> * @return The bytes for environment. */ com.google.protobuf.ByteString getEnvironmentBytes(); /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return A list containing the permissions. */ java.util.List<ai.chalk.protos.chalk.auth.v1.Permission> getPermissionsList(); /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return The count of permissions. */ int getPermissionsCount(); /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param index The index of the element to return. * @return The permissions at the given index. */ ai.chalk.protos.chalk.auth.v1.Permission getPermissions(int index); /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @return A list containing the enum numeric values on the wire for permissions. */ java.util.List<java.lang.Integer> getPermissionsValueList(); /** * <code>repeated .chalk.auth.v1.Permission permissions = 5 [json_name = "permissions"];</code> * @param index The index of the value to return. * @return The enum numeric value on the wire of permissions at the given index. */ int getPermissionsValue(int index); /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @return A list containing the customClaims. */ @java.lang.Deprecated java.util.List<java.lang.String> getCustomClaimsList(); /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @return The count of customClaims. */ @java.lang.Deprecated int getCustomClaimsCount(); /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param index The index of the element to return. * @return The customClaims at the given index. */ @java.lang.Deprecated java.lang.String getCustomClaims(int index); /** * <code>repeated string custom_claims = 6 [json_name = "customClaims", deprecated = true];</code> * @deprecated chalk.auth.v1.ServiceTokenAgent.custom_claims is deprecated. * See chalk/auth/v1/agent.proto;l=34 * @param index The index of the value to return. * @return The bytes of the customClaims at the given index. */ @java.lang.Deprecated com.google.protobuf.ByteString getCustomClaimsBytes(int index); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ java.util.List<ai.chalk.protos.chalk.auth.v1.CustomClaim> getCustomerClaimsList(); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ ai.chalk.protos.chalk.auth.v1.CustomClaim getCustomerClaims(int index); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ int getCustomerClaimsCount(); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder> getCustomerClaimsOrBuilderList(); /** * <code>repeated .chalk.auth.v1.CustomClaim customer_claims = 7 [json_name = "customerClaims"];</code> */ ai.chalk.protos.chalk.auth.v1.CustomClaimOrBuilder getCustomerClaimsOrBuilder( int index); /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> * @return Whether the featurePermissions field is set. */ boolean hasFeaturePermissions(); /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> * @return The featurePermissions. */ ai.chalk.protos.chalk.auth.v1.FeaturePermissions getFeaturePermissions(); /** * <code>.chalk.auth.v1.FeaturePermissions feature_permissions = 8 [json_name = "featurePermissions"];</code> */ ai.chalk.protos.chalk.auth.v1.FeaturePermissionsOrBuilder getFeaturePermissionsOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/TenantAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.TenantAgent} */ public final class TenantAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.TenantAgent) TenantAgentOrBuilder { private static final long serialVersionUID = 0L; // Use TenantAgent.newBuilder() to construct. private TenantAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private TenantAgent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TenantAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_TenantAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_TenantAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.TenantAgent.class, ai.chalk.protos.chalk.auth.v1.TenantAgent.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.TenantAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.TenantAgent other = (ai.chalk.protos.chalk.auth.v1.TenantAgent) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.TenantAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent 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 ai.chalk.protos.chalk.auth.v1.TenantAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent 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 ai.chalk.protos.chalk.auth.v1.TenantAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent 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(ai.chalk.protos.chalk.auth.v1.TenantAgent 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; } /** * Protobuf type {@code chalk.auth.v1.TenantAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.TenantAgent) ai.chalk.protos.chalk.auth.v1.TenantAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_TenantAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_TenantAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.TenantAgent.class, ai.chalk.protos.chalk.auth.v1.TenantAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.TenantAgent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_TenantAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.TenantAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.TenantAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.TenantAgent build() { ai.chalk.protos.chalk.auth.v1.TenantAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.TenantAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.TenantAgent result = new ai.chalk.protos.chalk.auth.v1.TenantAgent(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.TenantAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.TenantAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.TenantAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.TenantAgent.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.TenantAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.TenantAgent) private static final ai.chalk.protos.chalk.auth.v1.TenantAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.TenantAgent(); } public static ai.chalk.protos.chalk.auth.v1.TenantAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<TenantAgent> PARSER = new com.google.protobuf.AbstractParser<TenantAgent>() { @java.lang.Override public TenantAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<TenantAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<TenantAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.TenantAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/TenantAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface TenantAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.TenantAgent) com.google.protobuf.MessageOrBuilder { }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/UserAgent.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; /** * Protobuf type {@code chalk.auth.v1.UserAgent} */ public final class UserAgent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.auth.v1.UserAgent) UserAgentOrBuilder { private static final long serialVersionUID = 0L; // Use UserAgent.newBuilder() to construct. private UserAgent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private UserAgent() { clientId_ = ""; userId_ = ""; teamId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UserAgent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_UserAgent_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetPermissionsByEnvironment(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_UserAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.UserAgent.class, ai.chalk.protos.chalk.auth.v1.UserAgent.Builder.class); } public static final int CLIENT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.UserAgent.client_id is deprecated. * See chalk/auth/v1/agent.proto;l=16 * @return The clientId. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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(); clientId_ = s; return s; } } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.UserAgent.client_id is deprecated. * See chalk/auth/v1/agent.proto;l=16 * @return The bytes for clientId. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object userId_ = ""; /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The userId. */ @java.lang.Override 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; } } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The bytes for userId. */ @java.lang.Override 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 TEAM_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object teamId_ = ""; /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ @java.lang.Override public java.lang.String getTeamId() { java.lang.Object ref = teamId_; 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(); teamId_ = s; return s; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ @java.lang.Override public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PERMISSIONS_BY_ENVIRONMENT_FIELD_NUMBER = 4; private static final class PermissionsByEnvironmentDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions>newDefaultInstance( ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_UserAgent_PermissionsByEnvironmentEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> permissionsByEnvironment_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> internalGetPermissionsByEnvironment() { if (permissionsByEnvironment_ == null) { return com.google.protobuf.MapField.emptyMapField( PermissionsByEnvironmentDefaultEntryHolder.defaultEntry); } return permissionsByEnvironment_; } public int getPermissionsByEnvironmentCount() { return internalGetPermissionsByEnvironment().getMap().size(); } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public boolean containsPermissionsByEnvironment( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetPermissionsByEnvironment().getMap().containsKey(key); } /** * Use {@link #getPermissionsByEnvironmentMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> getPermissionsByEnvironment() { return getPermissionsByEnvironmentMap(); } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> getPermissionsByEnvironmentMap() { return internalGetPermissionsByEnvironment().getMap(); } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions getPermissionsByEnvironmentOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> map = internalGetPermissionsByEnvironment().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions getPermissionsByEnvironmentOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> map = internalGetPermissionsByEnvironment().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int IMPERSONATED_FIELD_NUMBER = 5; private boolean impersonated_ = false; /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ @java.lang.Override public boolean getImpersonated() { return impersonated_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, teamId_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetPermissionsByEnvironment(), PermissionsByEnvironmentDefaultEntryHolder.defaultEntry, 4); if (impersonated_ != false) { output.writeBool(5, impersonated_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, teamId_); } for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> entry : internalGetPermissionsByEnvironment().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> permissionsByEnvironment__ = PermissionsByEnvironmentDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, permissionsByEnvironment__); } if (impersonated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, impersonated_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.auth.v1.UserAgent)) { return super.equals(obj); } ai.chalk.protos.chalk.auth.v1.UserAgent other = (ai.chalk.protos.chalk.auth.v1.UserAgent) obj; if (!getClientId() .equals(other.getClientId())) return false; if (!getUserId() .equals(other.getUserId())) return false; if (!getTeamId() .equals(other.getTeamId())) return false; if (!internalGetPermissionsByEnvironment().equals( other.internalGetPermissionsByEnvironment())) return false; if (getImpersonated() != other.getImpersonated()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; hash = (53 * hash) + getTeamId().hashCode(); if (!internalGetPermissionsByEnvironment().getMap().isEmpty()) { hash = (37 * hash) + PERMISSIONS_BY_ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + internalGetPermissionsByEnvironment().hashCode(); } hash = (37 * hash) + IMPERSONATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getImpersonated()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.auth.v1.UserAgent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.UserAgent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.UserAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.UserAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.UserAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.auth.v1.UserAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.auth.v1.UserAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.UserAgent 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 ai.chalk.protos.chalk.auth.v1.UserAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.UserAgent 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 ai.chalk.protos.chalk.auth.v1.UserAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.auth.v1.UserAgent 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(ai.chalk.protos.chalk.auth.v1.UserAgent 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; } /** * Protobuf type {@code chalk.auth.v1.UserAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.auth.v1.UserAgent) ai.chalk.protos.chalk.auth.v1.UserAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_UserAgent_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetPermissionsByEnvironment(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 4: return internalGetMutablePermissionsByEnvironment(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_UserAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.auth.v1.UserAgent.class, ai.chalk.protos.chalk.auth.v1.UserAgent.Builder.class); } // Construct using ai.chalk.protos.chalk.auth.v1.UserAgent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; clientId_ = ""; userId_ = ""; teamId_ = ""; internalGetMutablePermissionsByEnvironment().clear(); impersonated_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.auth.v1.AgentProto.internal_static_chalk_auth_v1_UserAgent_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.UserAgent getDefaultInstanceForType() { return ai.chalk.protos.chalk.auth.v1.UserAgent.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.UserAgent build() { ai.chalk.protos.chalk.auth.v1.UserAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.UserAgent buildPartial() { ai.chalk.protos.chalk.auth.v1.UserAgent result = new ai.chalk.protos.chalk.auth.v1.UserAgent(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.auth.v1.UserAgent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.clientId_ = clientId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.userId_ = userId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.teamId_ = teamId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.permissionsByEnvironment_ = internalGetPermissionsByEnvironment().build(PermissionsByEnvironmentDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000010) != 0)) { result.impersonated_ = impersonated_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.auth.v1.UserAgent) { return mergeFrom((ai.chalk.protos.chalk.auth.v1.UserAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.auth.v1.UserAgent other) { if (other == ai.chalk.protos.chalk.auth.v1.UserAgent.getDefaultInstance()) return this; if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getTeamId().isEmpty()) { teamId_ = other.teamId_; bitField0_ |= 0x00000004; onChanged(); } internalGetMutablePermissionsByEnvironment().mergeFrom( other.internalGetPermissionsByEnvironment()); bitField0_ |= 0x00000008; if (other.getImpersonated() != false) { setImpersonated(other.getImpersonated()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { clientId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { userId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { teamId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> permissionsByEnvironment__ = input.readMessage( PermissionsByEnvironmentDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutablePermissionsByEnvironment().ensureBuilderMap().put( permissionsByEnvironment__.getKey(), permissionsByEnvironment__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 40: { impersonated_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object clientId_ = ""; /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.UserAgent.client_id is deprecated. * See chalk/auth/v1/agent.proto;l=16 * @return The clientId. */ @java.lang.Deprecated public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.UserAgent.client_id is deprecated. * See chalk/auth/v1/agent.proto;l=16 * @return The bytes for clientId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.UserAgent.client_id is deprecated. * See chalk/auth/v1/agent.proto;l=16 * @param value The clientId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.UserAgent.client_id is deprecated. * See chalk/auth/v1/agent.proto;l=16 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClientId() { clientId_ = getDefaultInstance().getClientId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.UserAgent.client_id is deprecated. * See chalk/auth/v1/agent.proto;l=16 * @param value The bytes for clientId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object userId_ = ""; /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The userId. */ 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; } } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The bytes for userId. */ 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; } } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string user_id = 2 [json_name = "userId"];</code> * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object teamId_ = ""; /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ public java.lang.String getTeamId() { java.lang.Object ref = teamId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @param value The teamId to set. * @return This builder for chaining. */ public Builder setTeamId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return This builder for chaining. */ public Builder clearTeamId() { teamId_ = getDefaultInstance().getTeamId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @param value The bytes for teamId to set. * @return This builder for chaining. */ public Builder setTeamIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private static final class PermissionsByEnvironmentConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> { @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions build(ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions) { return (ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions) val; } return ((ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> defaultEntry() { return PermissionsByEnvironmentDefaultEntryHolder.defaultEntry; } }; private static final PermissionsByEnvironmentConverter permissionsByEnvironmentConverter = new PermissionsByEnvironmentConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.Builder> permissionsByEnvironment_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.Builder> internalGetPermissionsByEnvironment() { if (permissionsByEnvironment_ == null) { return new com.google.protobuf.MapFieldBuilder<>(permissionsByEnvironmentConverter); } return permissionsByEnvironment_; } private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.Builder> internalGetMutablePermissionsByEnvironment() { if (permissionsByEnvironment_ == null) { permissionsByEnvironment_ = new com.google.protobuf.MapFieldBuilder<>(permissionsByEnvironmentConverter); } bitField0_ |= 0x00000008; onChanged(); return permissionsByEnvironment_; } public int getPermissionsByEnvironmentCount() { return internalGetPermissionsByEnvironment().ensureBuilderMap().size(); } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public boolean containsPermissionsByEnvironment( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetPermissionsByEnvironment().ensureBuilderMap().containsKey(key); } /** * Use {@link #getPermissionsByEnvironmentMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> getPermissionsByEnvironment() { return getPermissionsByEnvironmentMap(); } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> getPermissionsByEnvironmentMap() { return internalGetPermissionsByEnvironment().getImmutableMap(); } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions getPermissionsByEnvironmentOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder> map = internalGetMutablePermissionsByEnvironment().ensureBuilderMap(); return map.containsKey(key) ? permissionsByEnvironmentConverter.build(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions getPermissionsByEnvironmentOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder> map = internalGetMutablePermissionsByEnvironment().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return permissionsByEnvironmentConverter.build(map.get(key)); } public Builder clearPermissionsByEnvironment() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutablePermissionsByEnvironment().clear(); return this; } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder removePermissionsByEnvironment( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutablePermissionsByEnvironment().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> getMutablePermissionsByEnvironment() { bitField0_ |= 0x00000008; return internalGetMutablePermissionsByEnvironment().ensureMessageMap(); } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder putPermissionsByEnvironment( java.lang.String key, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutablePermissionsByEnvironment().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public Builder putAllPermissionsByEnvironment( java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutablePermissionsByEnvironment().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000008; return this; } /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ public ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.Builder putPermissionsByEnvironmentBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder> builderMap = internalGetMutablePermissionsByEnvironment().ensureBuilderMap(); ai.chalk.protos.chalk.auth.v1.EnvironmentPermissionsOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions) { entry = ((ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions.Builder) entry; } private boolean impersonated_ ; /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ @java.lang.Override public boolean getImpersonated() { return impersonated_; } /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @param value The impersonated to set. * @return This builder for chaining. */ public Builder setImpersonated(boolean value) { impersonated_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return This builder for chaining. */ public Builder clearImpersonated() { bitField0_ = (bitField0_ & ~0x00000010); impersonated_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.auth.v1.UserAgent) } // @@protoc_insertion_point(class_scope:chalk.auth.v1.UserAgent) private static final ai.chalk.protos.chalk.auth.v1.UserAgent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.auth.v1.UserAgent(); } public static ai.chalk.protos.chalk.auth.v1.UserAgent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<UserAgent> PARSER = new com.google.protobuf.AbstractParser<UserAgent>() { @java.lang.Override public UserAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<UserAgent> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<UserAgent> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.auth.v1.UserAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/auth/v1/UserAgentOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/auth/v1/agent.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.auth.v1; public interface UserAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.auth.v1.UserAgent) com.google.protobuf.MessageOrBuilder { /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.UserAgent.client_id is deprecated. * See chalk/auth/v1/agent.proto;l=16 * @return The clientId. */ @java.lang.Deprecated java.lang.String getClientId(); /** * <code>string client_id = 1 [json_name = "clientId", deprecated = true];</code> * @deprecated chalk.auth.v1.UserAgent.client_id is deprecated. * See chalk/auth/v1/agent.proto;l=16 * @return The bytes for clientId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClientIdBytes(); /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The userId. */ java.lang.String getUserId(); /** * <code>string user_id = 2 [json_name = "userId"];</code> * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The teamId. */ java.lang.String getTeamId(); /** * <code>string team_id = 3 [json_name = "teamId"];</code> * @return The bytes for teamId. */ com.google.protobuf.ByteString getTeamIdBytes(); /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ int getPermissionsByEnvironmentCount(); /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ boolean containsPermissionsByEnvironment( java.lang.String key); /** * Use {@link #getPermissionsByEnvironmentMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> getPermissionsByEnvironment(); /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions> getPermissionsByEnvironmentMap(); /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ /* nullable */ ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions getPermissionsByEnvironmentOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions defaultValue); /** * <code>map&lt;string, .chalk.auth.v1.EnvironmentPermissions&gt; permissions_by_environment = 4 [json_name = "permissionsByEnvironment"];</code> */ ai.chalk.protos.chalk.auth.v1.EnvironmentPermissions getPermissionsByEnvironmentOrThrow( java.lang.String key); /** * <code>bool impersonated = 5 [json_name = "impersonated"];</code> * @return The impersonated. */ boolean getImpersonated(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart/v1/DensePoint.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/chart/v1/densetimeserieschart.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.chart.v1; /** * Protobuf type {@code chalk.chart.v1.DensePoint} */ public final class DensePoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.chart.v1.DensePoint) DensePointOrBuilder { private static final long serialVersionUID = 0L; // Use DensePoint.newBuilder() to construct. private DensePoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DensePoint() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DensePoint(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DensePoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DensePoint_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.chart.v1.DensePoint.class, ai.chalk.protos.chalk.chart.v1.DensePoint.Builder.class); } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private double value_ = 0D; /** * <pre> * wrapped in a Point to allow for optional (empty space in time series) * </pre> * * <code>optional double value = 1 [json_name = "value"];</code> * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * <pre> * wrapped in a Point to allow for optional (empty space in time series) * </pre> * * <code>optional double value = 1 [json_name = "value"];</code> * @return The value. */ @java.lang.Override public double getValue() { return value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(1, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.chart.v1.DensePoint)) { return super.equals(obj); } ai.chalk.protos.chalk.chart.v1.DensePoint other = (ai.chalk.protos.chalk.chart.v1.DensePoint) obj; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (java.lang.Double.doubleToLongBits(getValue()) != java.lang.Double.doubleToLongBits( other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.chart.v1.DensePoint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.chart.v1.DensePoint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.chart.v1.DensePoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.chart.v1.DensePoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.chart.v1.DensePoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.chart.v1.DensePoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.chart.v1.DensePoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.chart.v1.DensePoint 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 ai.chalk.protos.chalk.chart.v1.DensePoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.chart.v1.DensePoint 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 ai.chalk.protos.chalk.chart.v1.DensePoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.chart.v1.DensePoint 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(ai.chalk.protos.chalk.chart.v1.DensePoint 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; } /** * Protobuf type {@code chalk.chart.v1.DensePoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.chart.v1.DensePoint) ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DensePoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DensePoint_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.chart.v1.DensePoint.class, ai.chalk.protos.chalk.chart.v1.DensePoint.Builder.class); } // Construct using ai.chalk.protos.chalk.chart.v1.DensePoint.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DensePoint_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DensePoint getDefaultInstanceForType() { return ai.chalk.protos.chalk.chart.v1.DensePoint.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DensePoint build() { ai.chalk.protos.chalk.chart.v1.DensePoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DensePoint buildPartial() { ai.chalk.protos.chalk.chart.v1.DensePoint result = new ai.chalk.protos.chalk.chart.v1.DensePoint(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.chart.v1.DensePoint result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = value_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.chart.v1.DensePoint) { return mergeFrom((ai.chalk.protos.chalk.chart.v1.DensePoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.chart.v1.DensePoint other) { if (other == ai.chalk.protos.chalk.chart.v1.DensePoint.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 9: { value_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private double value_ ; /** * <pre> * wrapped in a Point to allow for optional (empty space in time series) * </pre> * * <code>optional double value = 1 [json_name = "value"];</code> * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * <pre> * wrapped in a Point to allow for optional (empty space in time series) * </pre> * * <code>optional double value = 1 [json_name = "value"];</code> * @return The value. */ @java.lang.Override public double getValue() { return value_; } /** * <pre> * wrapped in a Point to allow for optional (empty space in time series) * </pre> * * <code>optional double value = 1 [json_name = "value"];</code> * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(double value) { value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <pre> * wrapped in a Point to allow for optional (empty space in time series) * </pre> * * <code>optional double value = 1 [json_name = "value"];</code> * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 0D; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.chart.v1.DensePoint) } // @@protoc_insertion_point(class_scope:chalk.chart.v1.DensePoint) private static final ai.chalk.protos.chalk.chart.v1.DensePoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.chart.v1.DensePoint(); } public static ai.chalk.protos.chalk.chart.v1.DensePoint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DensePoint> PARSER = new com.google.protobuf.AbstractParser<DensePoint>() { @java.lang.Override public DensePoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DensePoint> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DensePoint> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DensePoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart/v1/DensePointOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/chart/v1/densetimeserieschart.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.chart.v1; public interface DensePointOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.chart.v1.DensePoint) com.google.protobuf.MessageOrBuilder { /** * <pre> * wrapped in a Point to allow for optional (empty space in time series) * </pre> * * <code>optional double value = 1 [json_name = "value"];</code> * @return Whether the value field is set. */ boolean hasValue(); /** * <pre> * wrapped in a Point to allow for optional (empty space in time series) * </pre> * * <code>optional double value = 1 [json_name = "value"];</code> * @return The value. */ double getValue(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart/v1/DenseTimeSeries.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/chart/v1/densetimeserieschart.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.chart.v1; /** * Protobuf type {@code chalk.chart.v1.DenseTimeSeries} */ public final class DenseTimeSeries extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.chart.v1.DenseTimeSeries) DenseTimeSeriesOrBuilder { private static final long serialVersionUID = 0L; // Use DenseTimeSeries.newBuilder() to construct. private DenseTimeSeries(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DenseTimeSeries() { points_ = java.util.Collections.emptyList(); label_ = ""; unit_ = ""; groupTags_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DenseTimeSeries(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.class, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder.class); } public static final int POINTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.chart.v1.DensePoint> points_; /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.chart.v1.DensePoint> getPointsList() { return points_; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder> getPointsOrBuilderList() { return points_; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ @java.lang.Override public int getPointsCount() { return points_.size(); } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DensePoint getPoints(int index) { return points_.get(index); } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder getPointsOrBuilder( int index) { return points_.get(index); } public static final int LABEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object label_ = ""; /** * <code>string label = 2 [json_name = "label"];</code> * @return The label. */ @java.lang.Override public java.lang.String getLabel() { java.lang.Object ref = label_; 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(); label_ = s; return s; } } /** * <code>string label = 2 [json_name = "label"];</code> * @return The bytes for label. */ @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UNIT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object unit_ = ""; /** * <code>string unit = 3 [json_name = "unit"];</code> * @return The unit. */ @java.lang.Override public java.lang.String getUnit() { java.lang.Object ref = unit_; 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(); unit_ = s; return s; } } /** * <code>string unit = 3 [json_name = "unit"];</code> * @return The bytes for unit. */ @java.lang.Override public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); unit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GROUP_TAGS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.chart.v1.GroupTag> groupTags_; /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.chart.v1.GroupTag> getGroupTagsList() { return groupTags_; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.chart.v1.GroupTagOrBuilder> getGroupTagsOrBuilderList() { return groupTags_; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ @java.lang.Override public int getGroupTagsCount() { return groupTags_.size(); } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.chart.v1.GroupTag getGroupTags(int index) { return groupTags_.get(index); } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.chart.v1.GroupTagOrBuilder getGroupTagsOrBuilder( int index) { return groupTags_.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 { for (int i = 0; i < points_.size(); i++) { output.writeMessage(1, points_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unit_); } for (int i = 0; i < groupTags_.size(); i++) { output.writeMessage(4, groupTags_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < points_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, points_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, unit_); } for (int i = 0; i < groupTags_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, groupTags_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.chart.v1.DenseTimeSeries)) { return super.equals(obj); } ai.chalk.protos.chalk.chart.v1.DenseTimeSeries other = (ai.chalk.protos.chalk.chart.v1.DenseTimeSeries) obj; if (!getPointsList() .equals(other.getPointsList())) return false; if (!getLabel() .equals(other.getLabel())) return false; if (!getUnit() .equals(other.getUnit())) return false; if (!getGroupTagsList() .equals(other.getGroupTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPointsCount() > 0) { hash = (37 * hash) + POINTS_FIELD_NUMBER; hash = (53 * hash) + getPointsList().hashCode(); } hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + getUnit().hashCode(); if (getGroupTagsCount() > 0) { hash = (37 * hash) + GROUP_TAGS_FIELD_NUMBER; hash = (53 * hash) + getGroupTagsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries 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 ai.chalk.protos.chalk.chart.v1.DenseTimeSeries parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries 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 ai.chalk.protos.chalk.chart.v1.DenseTimeSeries parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries 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(ai.chalk.protos.chalk.chart.v1.DenseTimeSeries 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; } /** * Protobuf type {@code chalk.chart.v1.DenseTimeSeries} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.chart.v1.DenseTimeSeries) ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.class, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder.class); } // Construct using ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (pointsBuilder_ == null) { points_ = java.util.Collections.emptyList(); } else { points_ = null; pointsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); label_ = ""; unit_ = ""; if (groupTagsBuilder_ == null) { groupTags_ = java.util.Collections.emptyList(); } else { groupTags_ = null; groupTagsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeries_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeries getDefaultInstanceForType() { return ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeries build() { ai.chalk.protos.chalk.chart.v1.DenseTimeSeries result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeries buildPartial() { ai.chalk.protos.chalk.chart.v1.DenseTimeSeries result = new ai.chalk.protos.chalk.chart.v1.DenseTimeSeries(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.chart.v1.DenseTimeSeries result) { if (pointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { points_ = java.util.Collections.unmodifiableList(points_); bitField0_ = (bitField0_ & ~0x00000001); } result.points_ = points_; } else { result.points_ = pointsBuilder_.build(); } if (groupTagsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { groupTags_ = java.util.Collections.unmodifiableList(groupTags_); bitField0_ = (bitField0_ & ~0x00000008); } result.groupTags_ = groupTags_; } else { result.groupTags_ = groupTagsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.chart.v1.DenseTimeSeries result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.label_ = label_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.unit_ = unit_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.chart.v1.DenseTimeSeries) { return mergeFrom((ai.chalk.protos.chalk.chart.v1.DenseTimeSeries)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.chart.v1.DenseTimeSeries other) { if (other == ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.getDefaultInstance()) return this; if (pointsBuilder_ == null) { if (!other.points_.isEmpty()) { if (points_.isEmpty()) { points_ = other.points_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePointsIsMutable(); points_.addAll(other.points_); } onChanged(); } } else { if (!other.points_.isEmpty()) { if (pointsBuilder_.isEmpty()) { pointsBuilder_.dispose(); pointsBuilder_ = null; points_ = other.points_; bitField0_ = (bitField0_ & ~0x00000001); pointsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPointsFieldBuilder() : null; } else { pointsBuilder_.addAllMessages(other.points_); } } } if (!other.getLabel().isEmpty()) { label_ = other.label_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getUnit().isEmpty()) { unit_ = other.unit_; bitField0_ |= 0x00000004; onChanged(); } if (groupTagsBuilder_ == null) { if (!other.groupTags_.isEmpty()) { if (groupTags_.isEmpty()) { groupTags_ = other.groupTags_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureGroupTagsIsMutable(); groupTags_.addAll(other.groupTags_); } onChanged(); } } else { if (!other.groupTags_.isEmpty()) { if (groupTagsBuilder_.isEmpty()) { groupTagsBuilder_.dispose(); groupTagsBuilder_ = null; groupTags_ = other.groupTags_; bitField0_ = (bitField0_ & ~0x00000008); groupTagsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroupTagsFieldBuilder() : null; } else { groupTagsBuilder_.addAllMessages(other.groupTags_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ai.chalk.protos.chalk.chart.v1.DensePoint m = input.readMessage( ai.chalk.protos.chalk.chart.v1.DensePoint.parser(), extensionRegistry); if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.add(m); } else { pointsBuilder_.addMessage(m); } break; } // case 10 case 18: { label_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { unit_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { ai.chalk.protos.chalk.chart.v1.GroupTag m = input.readMessage( ai.chalk.protos.chalk.chart.v1.GroupTag.parser(), extensionRegistry); if (groupTagsBuilder_ == null) { ensureGroupTagsIsMutable(); groupTags_.add(m); } else { groupTagsBuilder_.addMessage(m); } break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List<ai.chalk.protos.chalk.chart.v1.DensePoint> points_ = java.util.Collections.emptyList(); private void ensurePointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { points_ = new java.util.ArrayList<ai.chalk.protos.chalk.chart.v1.DensePoint>(points_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.chart.v1.DensePoint, ai.chalk.protos.chalk.chart.v1.DensePoint.Builder, ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder> pointsBuilder_; /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public java.util.List<ai.chalk.protos.chalk.chart.v1.DensePoint> getPointsList() { if (pointsBuilder_ == null) { return java.util.Collections.unmodifiableList(points_); } else { return pointsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public int getPointsCount() { if (pointsBuilder_ == null) { return points_.size(); } else { return pointsBuilder_.getCount(); } } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public ai.chalk.protos.chalk.chart.v1.DensePoint getPoints(int index) { if (pointsBuilder_ == null) { return points_.get(index); } else { return pointsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public Builder setPoints( int index, ai.chalk.protos.chalk.chart.v1.DensePoint value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePointsIsMutable(); points_.set(index, value); onChanged(); } else { pointsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public Builder setPoints( int index, ai.chalk.protos.chalk.chart.v1.DensePoint.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.set(index, builderForValue.build()); onChanged(); } else { pointsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public Builder addPoints(ai.chalk.protos.chalk.chart.v1.DensePoint value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePointsIsMutable(); points_.add(value); onChanged(); } else { pointsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public Builder addPoints( int index, ai.chalk.protos.chalk.chart.v1.DensePoint value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePointsIsMutable(); points_.add(index, value); onChanged(); } else { pointsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public Builder addPoints( ai.chalk.protos.chalk.chart.v1.DensePoint.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.add(builderForValue.build()); onChanged(); } else { pointsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public Builder addPoints( int index, ai.chalk.protos.chalk.chart.v1.DensePoint.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.add(index, builderForValue.build()); onChanged(); } else { pointsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public Builder addAllPoints( java.lang.Iterable<? extends ai.chalk.protos.chalk.chart.v1.DensePoint> values) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, points_); onChanged(); } else { pointsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public Builder clearPoints() { if (pointsBuilder_ == null) { points_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { pointsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public Builder removePoints(int index) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.remove(index); onChanged(); } else { pointsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public ai.chalk.protos.chalk.chart.v1.DensePoint.Builder getPointsBuilder( int index) { return getPointsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder getPointsOrBuilder( int index) { if (pointsBuilder_ == null) { return points_.get(index); } else { return pointsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder> getPointsOrBuilderList() { if (pointsBuilder_ != null) { return pointsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(points_); } } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public ai.chalk.protos.chalk.chart.v1.DensePoint.Builder addPointsBuilder() { return getPointsFieldBuilder().addBuilder( ai.chalk.protos.chalk.chart.v1.DensePoint.getDefaultInstance()); } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public ai.chalk.protos.chalk.chart.v1.DensePoint.Builder addPointsBuilder( int index) { return getPointsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.chart.v1.DensePoint.getDefaultInstance()); } /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ public java.util.List<ai.chalk.protos.chalk.chart.v1.DensePoint.Builder> getPointsBuilderList() { return getPointsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.chart.v1.DensePoint, ai.chalk.protos.chalk.chart.v1.DensePoint.Builder, ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder> getPointsFieldBuilder() { if (pointsBuilder_ == null) { pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.chart.v1.DensePoint, ai.chalk.protos.chalk.chart.v1.DensePoint.Builder, ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder>( points_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); points_ = null; } return pointsBuilder_; } private java.lang.Object label_ = ""; /** * <code>string label = 2 [json_name = "label"];</code> * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string label = 2 [json_name = "label"];</code> * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string label = 2 [json_name = "label"];</code> * @param value The label to set. * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string label = 2 [json_name = "label"];</code> * @return This builder for chaining. */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string label = 2 [json_name = "label"];</code> * @param value The bytes for label to set. * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object unit_ = ""; /** * <code>string unit = 3 [json_name = "unit"];</code> * @return The unit. */ public java.lang.String getUnit() { java.lang.Object ref = unit_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string unit = 3 [json_name = "unit"];</code> * @return The bytes for unit. */ public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); unit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string unit = 3 [json_name = "unit"];</code> * @param value The unit to set. * @return This builder for chaining. */ public Builder setUnit( java.lang.String value) { if (value == null) { throw new NullPointerException(); } unit_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string unit = 3 [json_name = "unit"];</code> * @return This builder for chaining. */ public Builder clearUnit() { unit_ = getDefaultInstance().getUnit(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string unit = 3 [json_name = "unit"];</code> * @param value The bytes for unit to set. * @return This builder for chaining. */ public Builder setUnitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unit_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.chart.v1.GroupTag> groupTags_ = java.util.Collections.emptyList(); private void ensureGroupTagsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { groupTags_ = new java.util.ArrayList<ai.chalk.protos.chalk.chart.v1.GroupTag>(groupTags_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.chart.v1.GroupTag, ai.chalk.protos.chalk.chart.v1.GroupTag.Builder, ai.chalk.protos.chalk.chart.v1.GroupTagOrBuilder> groupTagsBuilder_; /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public java.util.List<ai.chalk.protos.chalk.chart.v1.GroupTag> getGroupTagsList() { if (groupTagsBuilder_ == null) { return java.util.Collections.unmodifiableList(groupTags_); } else { return groupTagsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public int getGroupTagsCount() { if (groupTagsBuilder_ == null) { return groupTags_.size(); } else { return groupTagsBuilder_.getCount(); } } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public ai.chalk.protos.chalk.chart.v1.GroupTag getGroupTags(int index) { if (groupTagsBuilder_ == null) { return groupTags_.get(index); } else { return groupTagsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public Builder setGroupTags( int index, ai.chalk.protos.chalk.chart.v1.GroupTag value) { if (groupTagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupTagsIsMutable(); groupTags_.set(index, value); onChanged(); } else { groupTagsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public Builder setGroupTags( int index, ai.chalk.protos.chalk.chart.v1.GroupTag.Builder builderForValue) { if (groupTagsBuilder_ == null) { ensureGroupTagsIsMutable(); groupTags_.set(index, builderForValue.build()); onChanged(); } else { groupTagsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public Builder addGroupTags(ai.chalk.protos.chalk.chart.v1.GroupTag value) { if (groupTagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupTagsIsMutable(); groupTags_.add(value); onChanged(); } else { groupTagsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public Builder addGroupTags( int index, ai.chalk.protos.chalk.chart.v1.GroupTag value) { if (groupTagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupTagsIsMutable(); groupTags_.add(index, value); onChanged(); } else { groupTagsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public Builder addGroupTags( ai.chalk.protos.chalk.chart.v1.GroupTag.Builder builderForValue) { if (groupTagsBuilder_ == null) { ensureGroupTagsIsMutable(); groupTags_.add(builderForValue.build()); onChanged(); } else { groupTagsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public Builder addGroupTags( int index, ai.chalk.protos.chalk.chart.v1.GroupTag.Builder builderForValue) { if (groupTagsBuilder_ == null) { ensureGroupTagsIsMutable(); groupTags_.add(index, builderForValue.build()); onChanged(); } else { groupTagsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public Builder addAllGroupTags( java.lang.Iterable<? extends ai.chalk.protos.chalk.chart.v1.GroupTag> values) { if (groupTagsBuilder_ == null) { ensureGroupTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groupTags_); onChanged(); } else { groupTagsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public Builder clearGroupTags() { if (groupTagsBuilder_ == null) { groupTags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { groupTagsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public Builder removeGroupTags(int index) { if (groupTagsBuilder_ == null) { ensureGroupTagsIsMutable(); groupTags_.remove(index); onChanged(); } else { groupTagsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public ai.chalk.protos.chalk.chart.v1.GroupTag.Builder getGroupTagsBuilder( int index) { return getGroupTagsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public ai.chalk.protos.chalk.chart.v1.GroupTagOrBuilder getGroupTagsOrBuilder( int index) { if (groupTagsBuilder_ == null) { return groupTags_.get(index); } else { return groupTagsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.chart.v1.GroupTagOrBuilder> getGroupTagsOrBuilderList() { if (groupTagsBuilder_ != null) { return groupTagsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groupTags_); } } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public ai.chalk.protos.chalk.chart.v1.GroupTag.Builder addGroupTagsBuilder() { return getGroupTagsFieldBuilder().addBuilder( ai.chalk.protos.chalk.chart.v1.GroupTag.getDefaultInstance()); } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public ai.chalk.protos.chalk.chart.v1.GroupTag.Builder addGroupTagsBuilder( int index) { return getGroupTagsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.chart.v1.GroupTag.getDefaultInstance()); } /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ public java.util.List<ai.chalk.protos.chalk.chart.v1.GroupTag.Builder> getGroupTagsBuilderList() { return getGroupTagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.chart.v1.GroupTag, ai.chalk.protos.chalk.chart.v1.GroupTag.Builder, ai.chalk.protos.chalk.chart.v1.GroupTagOrBuilder> getGroupTagsFieldBuilder() { if (groupTagsBuilder_ == null) { groupTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.chart.v1.GroupTag, ai.chalk.protos.chalk.chart.v1.GroupTag.Builder, ai.chalk.protos.chalk.chart.v1.GroupTagOrBuilder>( groupTags_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); groupTags_ = null; } return groupTagsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.chart.v1.DenseTimeSeries) } // @@protoc_insertion_point(class_scope:chalk.chart.v1.DenseTimeSeries) private static final ai.chalk.protos.chalk.chart.v1.DenseTimeSeries DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.chart.v1.DenseTimeSeries(); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeries getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DenseTimeSeries> PARSER = new com.google.protobuf.AbstractParser<DenseTimeSeries>() { @java.lang.Override public DenseTimeSeries parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DenseTimeSeries> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DenseTimeSeries> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart/v1/DenseTimeSeriesChart.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/chart/v1/densetimeserieschart.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.chart.v1; /** * <pre> ** * A representation of a densely encoded chart, suitable for time series where the series * have mostly non-null values. * Consider implementing a sparse chart if not every series has data at every tick * </pre> * * Protobuf type {@code chalk.chart.v1.DenseTimeSeriesChart} */ public final class DenseTimeSeriesChart extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.chart.v1.DenseTimeSeriesChart) DenseTimeSeriesChartOrBuilder { private static final long serialVersionUID = 0L; // Use DenseTimeSeriesChart.newBuilder() to construct. private DenseTimeSeriesChart(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DenseTimeSeriesChart() { title_ = ""; series_ = java.util.Collections.emptyList(); xSeries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DenseTimeSeriesChart(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeriesChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeriesChart_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart.class, ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart.Builder.class); } private int bitField0_; public static final int TITLE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** * <code>string title = 1 [json_name = "title"];</code> * @return The title. */ @java.lang.Override 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; } } /** * <code>string title = 1 [json_name = "title"];</code> * @return The bytes for title. */ @java.lang.Override 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 SERIES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.chart.v1.DenseTimeSeries> series_; /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.chart.v1.DenseTimeSeries> getSeriesList() { return series_; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder> getSeriesOrBuilderList() { return series_; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ @java.lang.Override public int getSeriesCount() { return series_.size(); } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeries getSeries(int index) { return series_.get(index); } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder getSeriesOrBuilder( int index) { return series_.get(index); } public static final int X_SERIES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List<com.google.protobuf.Timestamp> xSeries_; /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ @java.lang.Override public java.util.List<com.google.protobuf.Timestamp> getXSeriesList() { return xSeries_; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ @java.lang.Override public java.util.List<? extends com.google.protobuf.TimestampOrBuilder> getXSeriesOrBuilderList() { return xSeries_; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ @java.lang.Override public int getXSeriesCount() { return xSeries_.size(); } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ @java.lang.Override public com.google.protobuf.Timestamp getXSeries(int index) { return xSeries_.get(index); } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getXSeriesOrBuilder( int index) { return xSeries_.get(index); } public static final int WINDOW_PERIOD_FIELD_NUMBER = 4; private com.google.protobuf.Duration windowPeriod_; /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> * @return Whether the windowPeriod field is set. */ @java.lang.Override public boolean hasWindowPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> * @return The windowPeriod. */ @java.lang.Override public com.google.protobuf.Duration getWindowPeriod() { return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_; } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getWindowPeriodOrBuilder() { return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); } for (int i = 0; i < series_.size(); i++) { output.writeMessage(2, series_.get(i)); } for (int i = 0; i < xSeries_.size(); i++) { output.writeMessage(3, xSeries_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getWindowPeriod()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); } for (int i = 0; i < series_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, series_.get(i)); } for (int i = 0; i < xSeries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, xSeries_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getWindowPeriod()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart)) { return super.equals(obj); } ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart other = (ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart) obj; if (!getTitle() .equals(other.getTitle())) return false; if (!getSeriesList() .equals(other.getSeriesList())) return false; if (!getXSeriesList() .equals(other.getXSeriesList())) return false; if (hasWindowPeriod() != other.hasWindowPeriod()) return false; if (hasWindowPeriod()) { if (!getWindowPeriod() .equals(other.getWindowPeriod())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); if (getSeriesCount() > 0) { hash = (37 * hash) + SERIES_FIELD_NUMBER; hash = (53 * hash) + getSeriesList().hashCode(); } if (getXSeriesCount() > 0) { hash = (37 * hash) + X_SERIES_FIELD_NUMBER; hash = (53 * hash) + getXSeriesList().hashCode(); } if (hasWindowPeriod()) { hash = (37 * hash) + WINDOW_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getWindowPeriod().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart 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 ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart 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 ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart 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(ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart 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; } /** * <pre> ** * A representation of a densely encoded chart, suitable for time series where the series * have mostly non-null values. * Consider implementing a sparse chart if not every series has data at every tick * </pre> * * Protobuf type {@code chalk.chart.v1.DenseTimeSeriesChart} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.chart.v1.DenseTimeSeriesChart) ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChartOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeriesChart_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeriesChart_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart.class, ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart.Builder.class); } // Construct using ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSeriesFieldBuilder(); getXSeriesFieldBuilder(); getWindowPeriodFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; title_ = ""; if (seriesBuilder_ == null) { series_ = java.util.Collections.emptyList(); } else { series_ = null; seriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (xSeriesBuilder_ == null) { xSeries_ = java.util.Collections.emptyList(); } else { xSeries_ = null; xSeriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); windowPeriod_ = null; if (windowPeriodBuilder_ != null) { windowPeriodBuilder_.dispose(); windowPeriodBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.chart.v1.DensetimeserieschartProto.internal_static_chalk_chart_v1_DenseTimeSeriesChart_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart getDefaultInstanceForType() { return ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart build() { ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart buildPartial() { ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart result = new ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart result) { if (seriesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { series_ = java.util.Collections.unmodifiableList(series_); bitField0_ = (bitField0_ & ~0x00000002); } result.series_ = series_; } else { result.series_ = seriesBuilder_.build(); } if (xSeriesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { xSeries_ = java.util.Collections.unmodifiableList(xSeries_); bitField0_ = (bitField0_ & ~0x00000004); } result.xSeries_ = xSeries_; } else { result.xSeries_ = xSeriesBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.title_ = title_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.windowPeriod_ = windowPeriodBuilder_ == null ? windowPeriod_ : windowPeriodBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart) { return mergeFrom((ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart other) { if (other == ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart.getDefaultInstance()) return this; if (!other.getTitle().isEmpty()) { title_ = other.title_; bitField0_ |= 0x00000001; onChanged(); } if (seriesBuilder_ == null) { if (!other.series_.isEmpty()) { if (series_.isEmpty()) { series_ = other.series_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSeriesIsMutable(); series_.addAll(other.series_); } onChanged(); } } else { if (!other.series_.isEmpty()) { if (seriesBuilder_.isEmpty()) { seriesBuilder_.dispose(); seriesBuilder_ = null; series_ = other.series_; bitField0_ = (bitField0_ & ~0x00000002); seriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSeriesFieldBuilder() : null; } else { seriesBuilder_.addAllMessages(other.series_); } } } if (xSeriesBuilder_ == null) { if (!other.xSeries_.isEmpty()) { if (xSeries_.isEmpty()) { xSeries_ = other.xSeries_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureXSeriesIsMutable(); xSeries_.addAll(other.xSeries_); } onChanged(); } } else { if (!other.xSeries_.isEmpty()) { if (xSeriesBuilder_.isEmpty()) { xSeriesBuilder_.dispose(); xSeriesBuilder_ = null; xSeries_ = other.xSeries_; bitField0_ = (bitField0_ & ~0x00000004); xSeriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getXSeriesFieldBuilder() : null; } else { xSeriesBuilder_.addAllMessages(other.xSeries_); } } } if (other.hasWindowPeriod()) { mergeWindowPeriod(other.getWindowPeriod()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { title_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ai.chalk.protos.chalk.chart.v1.DenseTimeSeries m = input.readMessage( ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.parser(), extensionRegistry); if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.add(m); } else { seriesBuilder_.addMessage(m); } break; } // case 18 case 26: { com.google.protobuf.Timestamp m = input.readMessage( com.google.protobuf.Timestamp.parser(), extensionRegistry); if (xSeriesBuilder_ == null) { ensureXSeriesIsMutable(); xSeries_.add(m); } else { xSeriesBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getWindowPeriodFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object title_ = ""; /** * <code>string title = 1 [json_name = "title"];</code> * @return The title. */ 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; } } /** * <code>string title = 1 [json_name = "title"];</code> * @return The bytes for title. */ 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; } } /** * <code>string title = 1 [json_name = "title"];</code> * @param value The title to set. * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string title = 1 [json_name = "title"];</code> * @return This builder for chaining. */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string title = 1 [json_name = "title"];</code> * @param value The bytes for title to set. * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.chart.v1.DenseTimeSeries> series_ = java.util.Collections.emptyList(); private void ensureSeriesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { series_ = new java.util.ArrayList<ai.chalk.protos.chalk.chart.v1.DenseTimeSeries>(series_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.chart.v1.DenseTimeSeries, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder, ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder> seriesBuilder_; /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public java.util.List<ai.chalk.protos.chalk.chart.v1.DenseTimeSeries> getSeriesList() { if (seriesBuilder_ == null) { return java.util.Collections.unmodifiableList(series_); } else { return seriesBuilder_.getMessageList(); } } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public int getSeriesCount() { if (seriesBuilder_ == null) { return series_.size(); } else { return seriesBuilder_.getCount(); } } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public ai.chalk.protos.chalk.chart.v1.DenseTimeSeries getSeries(int index) { if (seriesBuilder_ == null) { return series_.get(index); } else { return seriesBuilder_.getMessage(index); } } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public Builder setSeries( int index, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSeriesIsMutable(); series_.set(index, value); onChanged(); } else { seriesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public Builder setSeries( int index, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder builderForValue) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.set(index, builderForValue.build()); onChanged(); } else { seriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public Builder addSeries(ai.chalk.protos.chalk.chart.v1.DenseTimeSeries value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSeriesIsMutable(); series_.add(value); onChanged(); } else { seriesBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public Builder addSeries( int index, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSeriesIsMutable(); series_.add(index, value); onChanged(); } else { seriesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public Builder addSeries( ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder builderForValue) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.add(builderForValue.build()); onChanged(); } else { seriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public Builder addSeries( int index, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder builderForValue) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.add(index, builderForValue.build()); onChanged(); } else { seriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public Builder addAllSeries( java.lang.Iterable<? extends ai.chalk.protos.chalk.chart.v1.DenseTimeSeries> values) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, series_); onChanged(); } else { seriesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public Builder clearSeries() { if (seriesBuilder_ == null) { series_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { seriesBuilder_.clear(); } return this; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public Builder removeSeries(int index) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.remove(index); onChanged(); } else { seriesBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder getSeriesBuilder( int index) { return getSeriesFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder getSeriesOrBuilder( int index) { if (seriesBuilder_ == null) { return series_.get(index); } else { return seriesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder> getSeriesOrBuilderList() { if (seriesBuilder_ != null) { return seriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(series_); } } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder addSeriesBuilder() { return getSeriesFieldBuilder().addBuilder( ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.getDefaultInstance()); } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder addSeriesBuilder( int index) { return getSeriesFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.getDefaultInstance()); } /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ public java.util.List<ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder> getSeriesBuilderList() { return getSeriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.chart.v1.DenseTimeSeries, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder, ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder> getSeriesFieldBuilder() { if (seriesBuilder_ == null) { seriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.chart.v1.DenseTimeSeries, ai.chalk.protos.chalk.chart.v1.DenseTimeSeries.Builder, ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder>( series_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); series_ = null; } return seriesBuilder_; } private java.util.List<com.google.protobuf.Timestamp> xSeries_ = java.util.Collections.emptyList(); private void ensureXSeriesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { xSeries_ = new java.util.ArrayList<com.google.protobuf.Timestamp>(xSeries_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> xSeriesBuilder_; /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public java.util.List<com.google.protobuf.Timestamp> getXSeriesList() { if (xSeriesBuilder_ == null) { return java.util.Collections.unmodifiableList(xSeries_); } else { return xSeriesBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public int getXSeriesCount() { if (xSeriesBuilder_ == null) { return xSeries_.size(); } else { return xSeriesBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public com.google.protobuf.Timestamp getXSeries(int index) { if (xSeriesBuilder_ == null) { return xSeries_.get(index); } else { return xSeriesBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public Builder setXSeries( int index, com.google.protobuf.Timestamp value) { if (xSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureXSeriesIsMutable(); xSeries_.set(index, value); onChanged(); } else { xSeriesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public Builder setXSeries( int index, com.google.protobuf.Timestamp.Builder builderForValue) { if (xSeriesBuilder_ == null) { ensureXSeriesIsMutable(); xSeries_.set(index, builderForValue.build()); onChanged(); } else { xSeriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public Builder addXSeries(com.google.protobuf.Timestamp value) { if (xSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureXSeriesIsMutable(); xSeries_.add(value); onChanged(); } else { xSeriesBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public Builder addXSeries( int index, com.google.protobuf.Timestamp value) { if (xSeriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureXSeriesIsMutable(); xSeries_.add(index, value); onChanged(); } else { xSeriesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public Builder addXSeries( com.google.protobuf.Timestamp.Builder builderForValue) { if (xSeriesBuilder_ == null) { ensureXSeriesIsMutable(); xSeries_.add(builderForValue.build()); onChanged(); } else { xSeriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public Builder addXSeries( int index, com.google.protobuf.Timestamp.Builder builderForValue) { if (xSeriesBuilder_ == null) { ensureXSeriesIsMutable(); xSeries_.add(index, builderForValue.build()); onChanged(); } else { xSeriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public Builder addAllXSeries( java.lang.Iterable<? extends com.google.protobuf.Timestamp> values) { if (xSeriesBuilder_ == null) { ensureXSeriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, xSeries_); onChanged(); } else { xSeriesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public Builder clearXSeries() { if (xSeriesBuilder_ == null) { xSeries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { xSeriesBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public Builder removeXSeries(int index) { if (xSeriesBuilder_ == null) { ensureXSeriesIsMutable(); xSeries_.remove(index); onChanged(); } else { xSeriesBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public com.google.protobuf.Timestamp.Builder getXSeriesBuilder( int index) { return getXSeriesFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public com.google.protobuf.TimestampOrBuilder getXSeriesOrBuilder( int index) { if (xSeriesBuilder_ == null) { return xSeries_.get(index); } else { return xSeriesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public java.util.List<? extends com.google.protobuf.TimestampOrBuilder> getXSeriesOrBuilderList() { if (xSeriesBuilder_ != null) { return xSeriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(xSeries_); } } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public com.google.protobuf.Timestamp.Builder addXSeriesBuilder() { return getXSeriesFieldBuilder().addBuilder( com.google.protobuf.Timestamp.getDefaultInstance()); } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public com.google.protobuf.Timestamp.Builder addXSeriesBuilder( int index) { return getXSeriesFieldBuilder().addBuilder( index, com.google.protobuf.Timestamp.getDefaultInstance()); } /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ public java.util.List<com.google.protobuf.Timestamp.Builder> getXSeriesBuilderList() { return getXSeriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getXSeriesFieldBuilder() { if (xSeriesBuilder_ == null) { xSeriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( xSeries_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); xSeries_ = null; } return xSeriesBuilder_; } private com.google.protobuf.Duration windowPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> windowPeriodBuilder_; /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> * @return Whether the windowPeriod field is set. */ public boolean hasWindowPeriod() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> * @return The windowPeriod. */ public com.google.protobuf.Duration getWindowPeriod() { if (windowPeriodBuilder_ == null) { return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_; } else { return windowPeriodBuilder_.getMessage(); } } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> */ public Builder setWindowPeriod(com.google.protobuf.Duration value) { if (windowPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } windowPeriod_ = value; } else { windowPeriodBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> */ public Builder setWindowPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (windowPeriodBuilder_ == null) { windowPeriod_ = builderForValue.build(); } else { windowPeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> */ public Builder mergeWindowPeriod(com.google.protobuf.Duration value) { if (windowPeriodBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && windowPeriod_ != null && windowPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { getWindowPeriodBuilder().mergeFrom(value); } else { windowPeriod_ = value; } } else { windowPeriodBuilder_.mergeFrom(value); } if (windowPeriod_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> */ public Builder clearWindowPeriod() { bitField0_ = (bitField0_ & ~0x00000008); windowPeriod_ = null; if (windowPeriodBuilder_ != null) { windowPeriodBuilder_.dispose(); windowPeriodBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> */ public com.google.protobuf.Duration.Builder getWindowPeriodBuilder() { bitField0_ |= 0x00000008; onChanged(); return getWindowPeriodFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> */ public com.google.protobuf.DurationOrBuilder getWindowPeriodOrBuilder() { if (windowPeriodBuilder_ != null) { return windowPeriodBuilder_.getMessageOrBuilder(); } else { return windowPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : windowPeriod_; } } /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWindowPeriodFieldBuilder() { if (windowPeriodBuilder_ == null) { windowPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getWindowPeriod(), getParentForChildren(), isClean()); windowPeriod_ = null; } return windowPeriodBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.chart.v1.DenseTimeSeriesChart) } // @@protoc_insertion_point(class_scope:chalk.chart.v1.DenseTimeSeriesChart) private static final ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart(); } public static ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DenseTimeSeriesChart> PARSER = new com.google.protobuf.AbstractParser<DenseTimeSeriesChart>() { @java.lang.Override public DenseTimeSeriesChart parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<DenseTimeSeriesChart> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DenseTimeSeriesChart> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesChart getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart/v1/DenseTimeSeriesChartOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/chart/v1/densetimeserieschart.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.chart.v1; public interface DenseTimeSeriesChartOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.chart.v1.DenseTimeSeriesChart) com.google.protobuf.MessageOrBuilder { /** * <code>string title = 1 [json_name = "title"];</code> * @return The title. */ java.lang.String getTitle(); /** * <code>string title = 1 [json_name = "title"];</code> * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ java.util.List<ai.chalk.protos.chalk.chart.v1.DenseTimeSeries> getSeriesList(); /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ ai.chalk.protos.chalk.chart.v1.DenseTimeSeries getSeries(int index); /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ int getSeriesCount(); /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder> getSeriesOrBuilderList(); /** * <code>repeated .chalk.chart.v1.DenseTimeSeries series = 2 [json_name = "series"];</code> */ ai.chalk.protos.chalk.chart.v1.DenseTimeSeriesOrBuilder getSeriesOrBuilder( int index); /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ java.util.List<com.google.protobuf.Timestamp> getXSeriesList(); /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ com.google.protobuf.Timestamp getXSeries(int index); /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ int getXSeriesCount(); /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ java.util.List<? extends com.google.protobuf.TimestampOrBuilder> getXSeriesOrBuilderList(); /** * <code>repeated .google.protobuf.Timestamp x_series = 3 [json_name = "xSeries"];</code> */ com.google.protobuf.TimestampOrBuilder getXSeriesOrBuilder( int index); /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> * @return Whether the windowPeriod field is set. */ boolean hasWindowPeriod(); /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> * @return The windowPeriod. */ com.google.protobuf.Duration getWindowPeriod(); /** * <code>.google.protobuf.Duration window_period = 4 [json_name = "windowPeriod"];</code> */ com.google.protobuf.DurationOrBuilder getWindowPeriodOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/chart/v1/DenseTimeSeriesOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/chart/v1/densetimeserieschart.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.chart.v1; public interface DenseTimeSeriesOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.chart.v1.DenseTimeSeries) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ java.util.List<ai.chalk.protos.chalk.chart.v1.DensePoint> getPointsList(); /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ ai.chalk.protos.chalk.chart.v1.DensePoint getPoints(int index); /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ int getPointsCount(); /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder> getPointsOrBuilderList(); /** * <code>repeated .chalk.chart.v1.DensePoint points = 1 [json_name = "points"];</code> */ ai.chalk.protos.chalk.chart.v1.DensePointOrBuilder getPointsOrBuilder( int index); /** * <code>string label = 2 [json_name = "label"];</code> * @return The label. */ java.lang.String getLabel(); /** * <code>string label = 2 [json_name = "label"];</code> * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); /** * <code>string unit = 3 [json_name = "unit"];</code> * @return The unit. */ java.lang.String getUnit(); /** * <code>string unit = 3 [json_name = "unit"];</code> * @return The bytes for unit. */ com.google.protobuf.ByteString getUnitBytes(); /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ java.util.List<ai.chalk.protos.chalk.chart.v1.GroupTag> getGroupTagsList(); /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ ai.chalk.protos.chalk.chart.v1.GroupTag getGroupTags(int index); /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ int getGroupTagsCount(); /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.chart.v1.GroupTagOrBuilder> getGroupTagsOrBuilderList(); /** * <code>repeated .chalk.chart.v1.GroupTag group_tags = 4 [json_name = "groupTags"];</code> */ ai.chalk.protos.chalk.chart.v1.GroupTagOrBuilder getGroupTagsOrBuilder( int index); }